From d8f31828ce9a5e1d3e8092de01f52bd190a7a8aa Mon Sep 17 00:00:00 2001 From: Ryan O'Neill Date: Thu, 6 Aug 2015 14:27:51 -0700 Subject: [PATCH] better test case --- .../com/typesafe/config/impl/ConfigSubstitutionTest.scala | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/src/test/scala/com/typesafe/config/impl/ConfigSubstitutionTest.scala b/config/src/test/scala/com/typesafe/config/impl/ConfigSubstitutionTest.scala index c67d253f..ffbb16fc 100644 --- a/config/src/test/scala/com/typesafe/config/impl/ConfigSubstitutionTest.scala +++ b/config/src/test/scala/com/typesafe/config/impl/ConfigSubstitutionTest.scala @@ -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")