mirror of
https://github.com/lightbend/config.git
synced 2025-03-23 07:40:25 +08:00
test weird empty documents with whitespace and comments
This commit is contained in:
parent
178cd17dad
commit
16fa1cec0d
@ -183,6 +183,12 @@ abstract trait TestUtils {
|
||||
"{}")
|
||||
|
||||
private val validConfInvalidJson = List[ParseTest]("", // empty document
|
||||
" ", // empty document single space
|
||||
"\n", // empty document single newline
|
||||
" \n \n \n\n\n", // complicated empty document
|
||||
"# foo", // just a comment
|
||||
"# bar\n", // just a comment with a newline
|
||||
"# foo\n//bar", // comment then another with no newline
|
||||
"""{ "foo" = 42 }""", // equals rather than colon
|
||||
"""{ foo { "bar" : 42 } }""", // omit the colon for object value
|
||||
"""{ foo baz { "bar" : 42 } }""", // omit the colon with unquoted key with spaces
|
||||
|
Loading…
Reference in New Issue
Block a user