better test case

This commit is contained in:
Ryan O'Neill 2015-08-06 14:27:51 -07:00
parent f5e9354ba0
commit d8f31828ce

View File

@ -40,6 +40,7 @@ class ConfigSubstitutionTest extends TestUtils {
"bool" : true,
"null" : null,
"string" : "hello",
"stringwsub": "hello ${foo} bar",
"double" : 3.14
}
}
@ -88,6 +89,13 @@ class ConfigSubstitutionTest extends TestUtils {
assertEquals(stringValue("hello"), v)
}
@Test
def resolveStringWSub() {
val s = subst("bar.stringwsub")
val v = resolveWithoutFallbacks(s, simpleObject)
assertEquals(stringValue("hello 42 bar"), v)
}
@Test
def resolveDouble() {
val s = subst("bar.double")