Added test for mixed inline tables in array

This commit is contained in:
moandji.ezana 2015-02-11 16:02:30 +02:00
parent 21c5dfd235
commit 66f7946542
2 changed files with 6 additions and 1 deletions

View file

@ -99,6 +99,9 @@ public class ArrayTest {
assertEquals(2, toml.getLong("points[2].x").longValue());
assertEquals(4, toml.getLong("points[2].y").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) {

View file

@ -1,3 +1,5 @@
points = [ { x = 1, y = 2, z = 3 },
{ x = 7, y = 8, z = 9 },
{ x = 2, y = 4, z = 8 } ]
{ x = 2, y = 4, z = 8 },
{ x = "3", y = "6", z = "12" }
]