diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:21:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:21:29 +0000 |
commit | 683f1f3ddde13390781318b9fe4a6841ea35d145 (patch) | |
tree | c21fddf99f2e5233bb3f22bbafd0d711fe7c5d95 /tests/data/valid/array | |
parent | Initial commit. (diff) | |
download | python-tomli-683f1f3ddde13390781318b9fe4a6841ea35d145.tar.xz python-tomli-683f1f3ddde13390781318b9fe4a6841ea35d145.zip |
Adding upstream version 2.0.1.upstream/2.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/data/valid/array')
-rw-r--r-- | tests/data/valid/array/array-subtables.json | 11 | ||||
-rw-r--r-- | tests/data/valid/array/array-subtables.toml | 7 | ||||
-rw-r--r-- | tests/data/valid/array/open-parent-table.json | 6 | ||||
-rw-r--r-- | tests/data/valid/array/open-parent-table.toml | 4 |
4 files changed, 28 insertions, 0 deletions
diff --git a/tests/data/valid/array/array-subtables.json b/tests/data/valid/array/array-subtables.json new file mode 100644 index 0000000..69ad37e --- /dev/null +++ b/tests/data/valid/array/array-subtables.json @@ -0,0 +1,11 @@ +{"arr": + {"type":"array","value": + [ + {"subtab": + {"val": {"type":"integer","value":"1"} + } + }, + {"subtab": {"val": {"type":"integer","value":"2"}}} + ] + } +} diff --git a/tests/data/valid/array/array-subtables.toml b/tests/data/valid/array/array-subtables.toml new file mode 100644 index 0000000..7075307 --- /dev/null +++ b/tests/data/valid/array/array-subtables.toml @@ -0,0 +1,7 @@ +[[arr]] +[arr.subtab] +val=1 + +[[arr]] +[arr.subtab] +val=2 diff --git a/tests/data/valid/array/open-parent-table.json b/tests/data/valid/array/open-parent-table.json new file mode 100644 index 0000000..7dba1b6 --- /dev/null +++ b/tests/data/valid/array/open-parent-table.json @@ -0,0 +1,6 @@ +{ + "parent-table": { + "arr": {"type":"array","value":[{},{}]}, + "not-arr": {"type":"integer","value":"1"} + } +} diff --git a/tests/data/valid/array/open-parent-table.toml b/tests/data/valid/array/open-parent-table.toml new file mode 100644 index 0000000..8eaad12 --- /dev/null +++ b/tests/data/valid/array/open-parent-table.toml @@ -0,0 +1,4 @@ +[[parent-table.arr]] +[[parent-table.arr]] +[parent-table] +not-arr = 1 |