update test for slice
This commit is contained in:
parent
95a6b6b1c0
commit
34524e635e
4
test.lua
4
test.lua
@ -307,9 +307,9 @@ local function test_slice()
|
|||||||
local h = buf:slice( 1000, 2000 )
|
local h = buf:slice( 1000, 2000 )
|
||||||
assert( #h == 0 )
|
assert( #h == 0 )
|
||||||
local i = buf:slice( 6, 3 )
|
local i = buf:slice( 6, 3 )
|
||||||
assert( #h == 0 )
|
assert( #i == 0 )
|
||||||
local j = buf:slice( -1000, -900 )
|
local j = buf:slice( -1000, -900 )
|
||||||
assert( #h == 0 )
|
assert( #j == 0 )
|
||||||
end
|
end
|
||||||
|
|
||||||
test_readonly()
|
test_readonly()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user