From 34524e635e16769c390171c828c25c9aa3854cf0 Mon Sep 17 00:00:00 2001 From: anod221 Date: Fri, 31 Aug 2018 11:21:28 +0800 Subject: [PATCH] update test for slice --- test.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.lua b/test.lua index d1d6388..00312b1 100644 --- a/test.lua +++ b/test.lua @@ -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()