• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/json-c/tests/test1.expected

  1 my_string=      
  2 my_string.to_string()="\t"
  3 my_string=\
  4 my_string.to_string()="\\"
  5 my_string=/
  6 my_string.to_string()="\/"
  7 my_string.to_string(NOSLASHESCAPE)="/"
  8 my_string=/foo/bar/baz
  9 my_string.to_string()="\/foo\/bar\/baz"
 10 my_string.to_string(NOSLASHESCAPE)="/foo/bar/baz"
 11 my_string=foo
 12 my_string.to_string()="foo"
 13 my_int=9
 14 my_int.to_string()=9
 15 my_null.to_string()=null
 16 my_array=
 17         [0]=1
 18         [1]=2
 19         [2]=3
 20         [3]=null
 21         [4]=5
 22 my_array.to_string()=[ 1, 2, 3, null, 5 ]
 23 my_array=
 24         [0]=1
 25         [1]=2
 26         [2]=3
 27         [3]=4
 28         [4]=5
 29         [5]=null
 30         [6]=7
 31 my_array.to_string()=[ 1, 2, 3, 4, 5, null, 7 ]
 32 after del_idx(0,1)=0, my_array.to_string()=[ 2, 3, 4, 5, null, 7 ]
 33 after del_idx(0,1)=0, my_array.to_string()=[ 3, 4, 5, null, 7 ]
 34 after del_idx(0,1)=0, my_array.to_string()=[ 4, 5, null, 7 ]
 35 after del_idx(0,1)=0, my_array.to_string()=[ 5, null, 7 ]
 36 after del_idx(0,1)=0, my_array.to_string()=[ null, 7 ]
 37 after del_idx(0,1)=0, my_array.to_string()=[ 7 ]
 38 after del_idx(0,1)=0, my_array.to_string()=[ ]
 39 after del_idx(0,1)=-1, my_array.to_string()=[ ]
 40 after del_idx(0,7)=0, my_array.to_string()=[ ]
 41 after del_idx(0,8)=-1, my_array.to_string()=[ 1, 2, 3, 4, 5, null, 7 ]
 42 after del_idx(0,6)=0, my_array.to_string()=[ 7 ]
 43 after adding more entries, my_array.to_string()=[ 7, "s1", "s2", "s3" ]
 44 my_array=
 45         [0]=1
 46         [1]=2
 47         [2]=3
 48         [3]=4
 49         [4]=5
 50         [5]=null
 51         [6]=7
 52 my_array.to_string()=[ 1, 2, 3, 4, 5, null, 7 ]
 53 put_idx(5,6)=0
 54 put_idx(63,0)=0
 55 put_idx(129,0)=0
 56 put_idx(SIZE_T_MAX,0)=-1
 57 my_array=
 58         [0]=3
 59         [1]=1
 60         [2]=2
 61         [3]=null
 62         [4]=0
 63 my_array.to_string()=[ 3, 1, 2, null, 0 ]
 64 my_array=
 65         [0]=null
 66         [1]=0
 67         [2]=1
 68         [3]=2
 69         [4]=3
 70 my_array.to_string()=[ null, 0, 1, 2, 3 ]
 71 find json_object(1) in my_array successfully: 1
 72 baz_obj.to_string()="fark"
 73 my_object=
 74         abc: 12
 75         foo: "bar"
 76         bool0: false
 77         bool1: true
 78 my_object.to_string()={ "abc": 12, "foo": "bar", "bool0": false, "bool1": true }

This page was automatically generated by LXR 0.3.1.  •  OpenWrt