mirror of
https://github.com/lightbend/config.git
synced 2025-03-14 19:30:25 +08:00
test case
This commit is contained in:
parent
091ae19e16
commit
1ab4def03d
@ -5,6 +5,7 @@ a: {
|
||||
}
|
||||
if [${shouldDoIt} == true] {
|
||||
c: "c"
|
||||
f: ${a.b}
|
||||
nested: {
|
||||
n: "n"
|
||||
if [${a.c} == "c"] {
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user