mirror of
https://github.com/json-c/json-c.git
synced 2026-03-20 05:29:07 +08:00
Extend the run_output_test() function so we actually can pass command line parameters and so we can support different output files for the same test executable. Also provide some hints about what to do if a test fails (i.e. set VERBOSE=1).
36 lines
533 B
Plaintext
36 lines
533 B
Plaintext
my_string=
|
|
my_string.to_string()="\t"
|
|
my_string=\
|
|
my_string.to_string()="\\"
|
|
my_string=foo
|
|
my_string.to_string()="foo"
|
|
my_int=9
|
|
my_int.to_string()=9
|
|
my_array=
|
|
[0]=1
|
|
[1]=2
|
|
[2]=3
|
|
[3]=null
|
|
[4]=5
|
|
my_array.to_string()=[1,2,3,null,5]
|
|
my_array=
|
|
[0]=3
|
|
[1]=1
|
|
[2]=2
|
|
[3]=null
|
|
[4]=0
|
|
my_array.to_string()=[3,1,2,null,0]
|
|
my_array=
|
|
[0]=null
|
|
[1]=0
|
|
[2]=1
|
|
[3]=2
|
|
[4]=3
|
|
my_array.to_string()=[null,0,1,2,3]
|
|
my_object=
|
|
abc: 12
|
|
foo: "bar"
|
|
bool0: false
|
|
bool1: true
|
|
my_object.to_string()={"abc":12,"foo":"bar","bool0":false,"bool1":true}
|