mirror of
https://github.com/plexusorg/toml4j.git
synced 2025-01-01 13:02:37 +00:00
Added test for mixed inline tables in array
This commit is contained in:
parent
21c5dfd235
commit
66f7946542
2 changed files with 6 additions and 1 deletions
|
@ -99,6 +99,9 @@ public class ArrayTest {
|
||||||
assertEquals(2, toml.getLong("points[2].x").longValue());
|
assertEquals(2, toml.getLong("points[2].x").longValue());
|
||||||
assertEquals(4, toml.getLong("points[2].y").longValue());
|
assertEquals(4, toml.getLong("points[2].y").longValue());
|
||||||
assertEquals(8, toml.getLong("points[2].z").longValue());
|
assertEquals(8, toml.getLong("points[2].z").longValue());
|
||||||
|
assertEquals("3", toml.getString("points[3].x"));
|
||||||
|
assertEquals("6", toml.getString("points[3].y"));
|
||||||
|
assertEquals("12", toml.getString("points[3].z"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private File file(String file) {
|
private File file(String file) {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
points = [ { x = 1, y = 2, z = 3 },
|
points = [ { x = 1, y = 2, z = 3 },
|
||||||
{ x = 7, y = 8, z = 9 },
|
{ x = 7, y = 8, z = 9 },
|
||||||
{ x = 2, y = 4, z = 8 } ]
|
{ x = 2, y = 4, z = 8 },
|
||||||
|
{ x = "3", y = "6", z = "12" }
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue