mirror of
https://github.com/lightbend/config.git
synced 2025-03-14 11:20:25 +08:00
add failed test for adding value after an include
This commit is contained in:
parent
b5578f4083
commit
4e5cd46bc9
@ -457,4 +457,14 @@ class ConfigDocumentTest extends TestUtils {
|
||||
assertEquals("{ a : {\n \"a\" : 1,\n \"b\" : 2\n } }",
|
||||
configDocument.withValue("a", configVal).render)
|
||||
}
|
||||
|
||||
@Test
|
||||
def configDocumentAddValueAfterInclude {
|
||||
val origText = "include \"application\""
|
||||
val configDocument = ConfigDocumentFactory.parseString(origText)
|
||||
|
||||
assertEquals(
|
||||
"include \"application\"\nfoo : bar",
|
||||
configDocument.withValueText("foo", "bar").render)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user