Add test case
This commit is contained in:
parent
d8cc119799
commit
275d9e05f3
|
@ -189,3 +189,7 @@ test!(example4,
|
||||||
test!(example_bom,
|
test!(example_bom,
|
||||||
include_str!("valid/example-bom.toml"),
|
include_str!("valid/example-bom.toml"),
|
||||||
include_str!("valid/example.json"));
|
include_str!("valid/example.json"));
|
||||||
|
|
||||||
|
test!(table_array_nest_no_keys,
|
||||||
|
include_str!("valid/table-array-nest-no-keys.toml"),
|
||||||
|
include_str!("valid/table-array-nest-no-keys.json"));
|
||||||
|
|
14
tests/valid/table-array-nest-no-keys.json
Normal file
14
tests/valid/table-array-nest-no-keys.json
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"albums": [
|
||||||
|
{
|
||||||
|
"songs": [{}, {}]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"artists": [
|
||||||
|
{
|
||||||
|
"home": {
|
||||||
|
"address": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
6
tests/valid/table-array-nest-no-keys.toml
Normal file
6
tests/valid/table-array-nest-no-keys.toml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[[ albums ]]
|
||||||
|
[[ albums.songs ]]
|
||||||
|
[[ albums.songs ]]
|
||||||
|
|
||||||
|
[[ artists ]]
|
||||||
|
[ artists.home.address ]
|
Loading…
Reference in a new issue