mirror of
https://github.com/lightbend/config.git
synced 2025-03-23 07:40:25 +08:00
add a test for null in value concatenation
This commit is contained in:
parent
7b0e5a1471
commit
e66eaddfc7
@ -98,6 +98,10 @@ class ConfigSubstitutionTest extends TestUtils {
|
||||
val v = resolveWithoutFallbacks(s, simpleObject)
|
||||
// null is supposed to become empty string
|
||||
assertEquals(stringValue("start<>end"), v)
|
||||
|
||||
// but when null is NOT a subst, it should not become empty, incidentally
|
||||
val o = parseObject("""{ "a" : null foo bar }""")
|
||||
assertEquals("null foo bar", o.getString("a"))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user