summaryrefslogtreecommitdiffstats
path: root/tests/data/extras/valid/burntsushi-repo/inline-table-nest.toml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:27:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:27:32 +0000
commit88857376d837c86ee4cbbe6ff3c9a22ab2113ffe (patch)
treeefe8d5d117c400fef855ba85e3c181cd0d4bd501 /tests/data/extras/valid/burntsushi-repo/inline-table-nest.toml
parentInitial commit. (diff)
downloadpython-tomli-w-88857376d837c86ee4cbbe6ff3c9a22ab2113ffe.tar.xz
python-tomli-w-88857376d837c86ee4cbbe6ff3c9a22ab2113ffe.zip
Adding upstream version 1.0.0.upstream/1.0.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/data/extras/valid/burntsushi-repo/inline-table-nest.toml')
-rw-r--r--tests/data/extras/valid/burntsushi-repo/inline-table-nest.toml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/data/extras/valid/burntsushi-repo/inline-table-nest.toml b/tests/data/extras/valid/burntsushi-repo/inline-table-nest.toml
new file mode 100644
index 0000000..2624c1d
--- /dev/null
+++ b/tests/data/extras/valid/burntsushi-repo/inline-table-nest.toml
@@ -0,0 +1,10 @@
+tbl_tbl_empty = { tbl_0 = {} }
+tbl_tbl_val = { tbl_1 = { one = 1 } }
+tbl_arr_tbl = { arr_tbl = [ { one = 1 } ] }
+arr_tbl_tbl = [ { tbl = { one = 1 } } ]
+
+# Array-of-array-of-table is interesting because it can only
+# be represented in inline form.
+arr_arr_tbl_empty = [ [ {} ] ]
+arr_arr_tbl_val = [ [ { one = 1 } ] ]
+arr_arr_tbls = [ [ { one = 1 }, { two = 2 } ] ]