mirror of
https://github.com/lightbend/config.git
synced 2025-03-22 23:30:27 +08:00
test case
This commit is contained in:
parent
091ae19e16
commit
1ab4def03d
@ -5,6 +5,7 @@ a: {
|
|||||||
}
|
}
|
||||||
if [${shouldDoIt} == true] {
|
if [${shouldDoIt} == true] {
|
||||||
c: "c"
|
c: "c"
|
||||||
|
f: ${a.b}
|
||||||
nested: {
|
nested: {
|
||||||
n: "n"
|
n: "n"
|
||||||
if [${a.c} == "c"] {
|
if [${a.c} == "c"] {
|
||||||
|
@ -816,6 +816,8 @@ class ConfParserTest extends TestUtils {
|
|||||||
|
|
||||||
assertEquals(resolved.getConfig("a").getString("b"), "b")
|
assertEquals(resolved.getConfig("a").getString("b"), "b")
|
||||||
assertEquals(resolved.getConfig("a").getString("c"), "c")
|
assertEquals(resolved.getConfig("a").getString("c"), "c")
|
||||||
|
assertEquals(resolved.getConfig("a").getString("f"), "b")
|
||||||
|
|
||||||
assertEquals(resolved.getConfig("a").getConfig("nested").getBoolean("works"), true)
|
assertEquals(resolved.getConfig("a").getConfig("nested").getBoolean("works"), true)
|
||||||
intercept[Exception] {
|
intercept[Exception] {
|
||||||
resolved.getConfig("a").getConfig("d")
|
resolved.getConfig("a").getConfig("d")
|
||||||
|
Loading…
Reference in New Issue
Block a user