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

Sources/json-c/tests/test_json_pointer.expected

  1 PASSED - GET - LOADED TEST JSON
  2 { "foo": [ "bar", "baz" ], "": 0, "a\/b": 1, "c%d": 2, "e^f": 3, "g|h": 4, "i\\j": 5, "k\"l": 6, " ": 7, "m~n": 8 }
  3 PASSED - GET - ENTIRE OBJECT WORKED
  4 PASSED - GET - /foo == ['bar', 'baz']
  5 PASSED - GET - /foo/0 == 'bar'
  6 PASSED - GET -  / == 0
  7 PASSED - GET -  /a~1b == 1
  8 PASSED - GET -  /c%d == 2
  9 PASSED - GET -  /e^f == 3
 10 PASSED - GET -  /g|h == 4
 11 PASSED - GET -  /i\j == 5
 12 PASSED - GET -  /k"l == 6
 13 PASSED - GET -  /  == 7
 14 PASSED - GET -  /m~0n == 8
 15 { "arr": [ { "obj": [ { }, { }, { "obj1": 0, "obj2": "1" } ] } ], "obj": { "obj": { "obj": [ { "obj1": 0, "obj2": "1" } ] } } }
 16 PASSED - GET - RECURSION TEST
 17 PASSED - GET - LOADED TEST JSON
 18 { "foo": [ "bar", "baz" ], "": 0, "a\/b": 1, "c%d": 2, "e^f": 3, "g|h": 4, "i\\j": 5, "k\"l": 6, " ": 7, "m~n": 8 }
 19 PASSED - GET - MISSING /
 20 PASSED - GET - NULL INPUTS
 21 PASSED - GET - INVALID INDEXES
 22 PASSED - SET - LOADED TEST JSON
 23 { "foo": [ "bar", "baz" ], "": 0, "a\/b": 1, "c%d": 2, "e^f": 3, "g|h": 4, "i\\j": 5, "k\"l": 6, " ": 7, "m~n": 8 }
 24 PASSED - SET - 'cod' in /foo/1
 25 PASSED - SET - non-existing /fud/gaw
 26 PASSED - SET - /fud == {}
 27 PASSED - SET - /fug/gaw == [1,2,3]
 28 PASSED - SET - /fug/gaw == [0,2,3]
 29 PASSED - SET - /fug/gaw == [0,2,3,4]
 30 PASSED - SET - / == 9
 31 PASSED - SET - Final JSON is: { "foo": [ "bar", "cod" ], "": 9, "a\/b": 1, "c%d": 2, "e^f": 3, "g|h": 4, "i\\j": 5, "k\"l": 6, " ": 7, "m~n": 8, "fud": { "gaw": [ 0, 2, 3, 4 ] } }
 32 10
 33 PASSED - SET - LOADED TEST JSON
 34 { "foo": [ "bar", "baz" ], "": 0, "a\/b": 1, "c%d": 2, "e^f": 3, "g|h": 4, "i\\j": 5, "k\"l": 6, " ": 7, "m~n": 8 }
 35 PASSED - SET - failed with NULL params for input json & path
 36 PASSED - SET - failed 'cod' with path 'foo/bar'
 37 PASSED - SET - failed 'cod' with path 'foo/bar'
 38 PASSED - SET - failed with invalid array index'
 39 PASSED - SET - failed to set index to non-array

This page was automatically generated by LXR 0.3.1.  •  OpenWrt