Skip to content

Commit

Permalink
tests from hjson-php issues
Browse files Browse the repository at this point in the history
  • Loading branch information
trobro committed Dec 26, 2021
1 parent ce60f3b commit afb535c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions assets/sorted/strings_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
last line

'''
multiline4: ←→±≠Я
not:
{
array:
Expand Down Expand Up @@ -69,6 +70,7 @@
one: "1"
true: "true"
two: "2"
zero: "0"
}
text1: This is a valid string value.
text2: a \ is just a \
Expand Down
4 changes: 3 additions & 1 deletion assets/sorted/strings_result.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"multiline1": "first line\n indented line\nlast line",
"multiline2": "first line\n indented line\nlast line",
"multiline3": "first line\n indented line\nlast line\n",
"multiline4": "←→±≠Я",
"not": {
"array": [
1,
Expand Down Expand Up @@ -48,7 +49,8 @@
"null": "null",
"one": "1",
"true": "true",
"two": "2"
"two": "2",
"zero": "0"
},
"text1": "This is a valid string value.",
"text2": "a \\ is just a \\",
Expand Down
2 changes: 2 additions & 0 deletions assets/strings_result.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
last line

'''
multiline4: ←→±≠Я
foo1a: asdf\"'a\s\w
foo1b: asdf\"'a\s\w
foo1c: asdf\"'a\s\w
Expand Down Expand Up @@ -75,5 +76,6 @@
one: "1"
two: "2"
minus: "-3"
zero: "0"
}
}
5 changes: 4 additions & 1 deletion assets/strings_result.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"multiline1": "first line\n indented line\nlast line",
"multiline2": "first line\n indented line\nlast line",
"multiline3": "first line\n indented line\nlast line\n",
"multiline4": "←→±≠Я",

"foo1a": "asdf\\\"'a\\s\\w",
"foo1b": "asdf\\\"'a\\s\\w",
"foo1c": "asdf\\\"'a\\s\\w",
Expand Down Expand Up @@ -54,6 +56,7 @@
"null": "null",
"one": "1",
"two": "2",
"minus": "-3"
"minus": "-3",
"zero": "0"
}
}
6 changes: 6 additions & 0 deletions assets/strings_test.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@

''' # trailing lf

multiline4:
'''
←→±≠Я
'''

# escapes/no escape

foo1a: asdf\"'a\s\w
Expand Down Expand Up @@ -81,5 +86,6 @@
one: "1"
two: "2"
minus: "-3"
zero: "0"
}
}

0 comments on commit afb535c

Please sign in to comment.