test case

This commit is contained in:
Ryan O'Neill 2015-08-13 14:46:03 -07:00
parent 091ae19e16
commit 1ab4def03d
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ a: {
}
if [${shouldDoIt} == true] {
c: "c"
f: ${a.b}
nested: {
n: "n"
if [${a.c} == "c"] {

View File

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