add a test for null in value concatenation

This commit is contained in:
Havoc Pennington 2011-11-12 21:53:40 -05:00
parent 7b0e5a1471
commit e66eaddfc7

View File

@ -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