summaryrefslogtreecommitdiffstats
path: root/tests/data/valid/array
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/valid/array')
-rw-r--r--tests/data/valid/array/array-subtables.json11
-rw-r--r--tests/data/valid/array/array-subtables.toml7
-rw-r--r--tests/data/valid/array/open-parent-table.json6
-rw-r--r--tests/data/valid/array/open-parent-table.toml4
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