testcase for array_list

This commit is contained in:
chenguoping
2020-01-02 19:30:00 +08:00
committed by dota17
parent 4742a2ab1d
commit 76e1472808
7 changed files with 130 additions and 0 deletions

View File

@@ -41,6 +41,19 @@ after del_idx(0,7)=0, my_array.to_string()=[]
after del_idx(0,8)=-1, my_array.to_string()=[1,2,3,4,5,null,7]
after del_idx(0,6)=0, my_array.to_string()=[7]
after adding more entries, my_array.to_string()=[7,"s1","s2","s3"]
my_array=
[0]=1
[1]=2
[2]=3
[3]=4
[4]=5
[5]=null
[6]=7
my_array.to_string()=[1,2,3,4,5,null,7]
put_idx(5,6)=0
put_idx(63,0)=0
put_idx(129,0)=0
put_idx(SIZE_T_MAX,0)=-1
my_array=
[0]=3
[1]=1
@@ -55,6 +68,7 @@ my_array=
[3]=2
[4]=3
my_array.to_string()=[null,0,1,2,3]
find json_object(1) in my_array successfully: 1
baz_obj.to_string()="fark"
my_object=
abc: 12