From 1ab4def03d05534500af5f8ae7e6b2e0cd1ade9b Mon Sep 17 00:00:00 2001 From: Ryan O'Neill Date: Thu, 13 Aug 2015 14:46:03 -0700 Subject: [PATCH] test case --- config/src/test/resources/conditional.conf | 1 + .../test/scala/com/typesafe/config/impl/ConfParserTest.scala | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config/src/test/resources/conditional.conf b/config/src/test/resources/conditional.conf index 9da3b967..a7cd38b4 100644 --- a/config/src/test/resources/conditional.conf +++ b/config/src/test/resources/conditional.conf @@ -5,6 +5,7 @@ a: { } if [${shouldDoIt} == true] { c: "c" + f: ${a.b} nested: { n: "n" if [${a.c} == "c"] { diff --git a/config/src/test/scala/com/typesafe/config/impl/ConfParserTest.scala b/config/src/test/scala/com/typesafe/config/impl/ConfParserTest.scala index bb6d67f3..958da0e7 100644 --- a/config/src/test/scala/com/typesafe/config/impl/ConfParserTest.scala +++ b/config/src/test/scala/com/typesafe/config/impl/ConfParserTest.scala @@ -816,6 +816,8 @@ class ConfParserTest extends TestUtils { assertEquals(resolved.getConfig("a").getString("b"), "b") assertEquals(resolved.getConfig("a").getString("c"), "c") + assertEquals(resolved.getConfig("a").getString("f"), "b") + assertEquals(resolved.getConfig("a").getConfig("nested").getBoolean("works"), true) intercept[Exception] { resolved.getConfig("a").getConfig("d")