1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
// test if stringify produces correct output
{
quotes:
{
num1: "1,2"
num2: "-1.1 ,"
num3: "1e10 ,2"
num4: "-1e-10,"
kw1: "true,"
kw2: "false ,"
kw3: "null,123"
close1: "1}"
close1b: "1 }"
close2: "1]"
close2b: "1 ]"
close3: "1,"
close3b: "1 ,"
comment1: "1#str"
comment2: "1//str"
comment3: "1/*str*/"
punc1: "{"
punc1b: "{foo"
punc2: "}"
punc2b: "}foo"
punc3: "["
punc3b: "[foo"
punc4: "]"
punc4b: "]foo"
punc5: ","
punc5b: ",foo"
punc6: ":"
punc6b: ":foo"
}
noquotes:
{
num0: ".1,2"
num1: "1.1.1,2"
num2: "-.1,"
num3: "1e10e,2"
num4: "-1e--10,"
kw1: "true1,"
kw2: "false0,"
kw3: "null0,"
close1: "a}"
close2: "a]"
comment1: "a#str"
comment2: "a//str"
comment3: "a/*str*/"
}
}
|