mirror of
https://github.com/lightbend/config.git
synced 2025-02-23 09:41:01 +08:00
Merge pull request #126 from typesafehub/wip/havocp-test-missing-values
Add tests for keys with no value
This commit is contained in:
commit
1ab16b6a9c
@ -386,7 +386,13 @@ abstract trait TestUtils {
|
|||||||
"${ // comment }",
|
"${ // comment }",
|
||||||
"{ include \"bar\" : 10 }", // include with a value after it
|
"{ include \"bar\" : 10 }", // include with a value after it
|
||||||
"{ include foo }", // include with unquoted string
|
"{ include foo }", // include with unquoted string
|
||||||
"{ include : { \"a\" : 1 } }") // include used as unquoted key
|
"{ include : { \"a\" : 1 } }", // include used as unquoted key
|
||||||
|
"a=", // no value
|
||||||
|
"a:", // no value with colon
|
||||||
|
"a= ", // no value with whitespace after
|
||||||
|
"a.b=", // no value with path
|
||||||
|
"{ a= }", // no value inside braces
|
||||||
|
"{ a: }") // no value with colon inside braces
|
||||||
|
|
||||||
// We'll automatically try each of these with whitespace modifications
|
// We'll automatically try each of these with whitespace modifications
|
||||||
// so no need to add every possible whitespace variation
|
// so no need to add every possible whitespace variation
|
||||||
|
Loading…
Reference in New Issue
Block a user