From b1f4dddbb48e50b3242fd02781299b1ad873c61f Mon Sep 17 00:00:00 2001 From: trobro Date: Sat, 14 Oct 2023 17:07:20 +0200 Subject: [PATCH] tests 2 --- assets/pass5_result.hjson | 4 ++++ assets/pass5_result.json | 4 ++++ assets/pass5_test.hjson | 4 ++++ assets/pass6_result.hjson | 8 ++++++++ assets/pass6_result.json | 8 ++++++++ assets/pass6_test.hjson | 1 + assets/root_result.hjson | 7 +++++++ assets/root_result.json | 6 ++++++ assets/root_test.hjson | 6 ++++++ assets/testlist.txt | 3 +++ 10 files changed, 51 insertions(+) create mode 100644 assets/pass5_result.hjson create mode 100644 assets/pass5_result.json create mode 100644 assets/pass5_test.hjson create mode 100644 assets/pass6_result.hjson create mode 100644 assets/pass6_result.json create mode 100644 assets/pass6_test.hjson create mode 100644 assets/root_result.hjson create mode 100644 assets/root_result.json create mode 100644 assets/root_test.hjson diff --git a/assets/pass5_result.hjson b/assets/pass5_result.hjson new file mode 100644 index 0000000..8ff44cf --- /dev/null +++ b/assets/pass5_result.hjson @@ -0,0 +1,4 @@ +{ + bigDouble: 9.223372036854776e+58 + bigInt: 9.223372036854776e+58 +} \ No newline at end of file diff --git a/assets/pass5_result.json b/assets/pass5_result.json new file mode 100644 index 0000000..7ce31fd --- /dev/null +++ b/assets/pass5_result.json @@ -0,0 +1,4 @@ +{ + "bigDouble": 9.223372036854776e+58, + "bigInt": 9.223372036854776e+58 +} \ No newline at end of file diff --git a/assets/pass5_test.hjson b/assets/pass5_test.hjson new file mode 100644 index 0000000..6232d61 --- /dev/null +++ b/assets/pass5_test.hjson @@ -0,0 +1,4 @@ +{ + bigDouble: 92233720368547758073829419051489548484843823585675828488686.0 + bigInt: 92233720368547758073829419051489548484843823585675828488686 +} diff --git a/assets/pass6_result.hjson b/assets/pass6_result.hjson new file mode 100644 index 0000000..15f0523 --- /dev/null +++ b/assets/pass6_result.hjson @@ -0,0 +1,8 @@ +{ + a: 1 + b: 2 + c: 3 + d: 4 + e: 5 + f: 6 +} \ No newline at end of file diff --git a/assets/pass6_result.json b/assets/pass6_result.json new file mode 100644 index 0000000..4e47b38 --- /dev/null +++ b/assets/pass6_result.json @@ -0,0 +1,8 @@ +{ + "a": 1, + "b": 2, + "c": 3, + "d": 4, + "e": 5, + "f": 6 +} \ No newline at end of file diff --git a/assets/pass6_test.hjson b/assets/pass6_test.hjson new file mode 100644 index 0000000..45f8466 --- /dev/null +++ b/assets/pass6_test.hjson @@ -0,0 +1 @@ +a: 1, b: 2,c:3,'d' /*cm1*/ : 4, /*cm2 */ e: /* cm3*/ 5 /* cm 4 */ f : 6 diff --git a/assets/root_result.hjson b/assets/root_result.hjson new file mode 100644 index 0000000..736372f --- /dev/null +++ b/assets/root_result.hjson @@ -0,0 +1,7 @@ +{ + database: + { + host: 127.0.0.1 + port: 555 + } +} \ No newline at end of file diff --git a/assets/root_result.json b/assets/root_result.json new file mode 100644 index 0000000..21b01cd --- /dev/null +++ b/assets/root_result.json @@ -0,0 +1,6 @@ +{ + "database": { + "host": "127.0.0.1", + "port": 555 + } +} \ No newline at end of file diff --git a/assets/root_test.hjson b/assets/root_test.hjson new file mode 100644 index 0000000..c0acd16 --- /dev/null +++ b/assets/root_test.hjson @@ -0,0 +1,6 @@ +// a object with the root braces omitted +database: +{ + host: 127.0.0.1 + port: 555 +} diff --git a/assets/testlist.txt b/assets/testlist.txt index 8b143af..f254814 100644 --- a/assets/testlist.txt +++ b/assets/testlist.txt @@ -78,7 +78,10 @@ pass1_test.json pass2_test.json pass3_test.json pass4_test.json +pass5_test.hjson +pass6_test.hjson passSingle_test.hjson +root_test.hjson stringify1_test.hjson strings2_test.hjson strings_test.hjson