update test for slice

This commit is contained in:
anod221 2018-08-31 11:21:28 +08:00 committed by GitHub
parent 95a6b6b1c0
commit 34524e635e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,9 +307,9 @@ local function test_slice()
local h = buf:slice( 1000, 2000 )
assert( #h == 0 )
local i = buf:slice( 6, 3 )
assert( #h == 0 )
assert( #i == 0 )
local j = buf:slice( -1000, -900 )
assert( #h == 0 )
assert( #j == 0 )
end
test_readonly()