diff options
Diffstat (limited to 'tests/data/invalid/inline-table')
11 files changed, 20 insertions, 0 deletions
diff --git a/tests/data/invalid/inline-table/define-twice-in-subtable.toml b/tests/data/invalid/inline-table/define-twice-in-subtable.toml new file mode 100644 index 0000000..7068341 --- /dev/null +++ b/tests/data/invalid/inline-table/define-twice-in-subtable.toml @@ -0,0 +1 @@ +table1 = { table2.dupe = 1, table2.dupe = 2 }
\ No newline at end of file diff --git a/tests/data/invalid/inline-table/define-twice.toml b/tests/data/invalid/inline-table/define-twice.toml new file mode 100644 index 0000000..8202b98 --- /dev/null +++ b/tests/data/invalid/inline-table/define-twice.toml @@ -0,0 +1 @@ +table = { dupe = 1, dupe = 2 }
\ No newline at end of file diff --git a/tests/data/invalid/inline-table/file-end-after-key-val.toml b/tests/data/invalid/inline-table/file-end-after-key-val.toml new file mode 100644 index 0000000..52d4e77 --- /dev/null +++ b/tests/data/invalid/inline-table/file-end-after-key-val.toml @@ -0,0 +1 @@ +a={b=1
\ No newline at end of file diff --git a/tests/data/invalid/inline-table/mutate.toml b/tests/data/invalid/inline-table/mutate.toml new file mode 100644 index 0000000..4e5e9ff --- /dev/null +++ b/tests/data/invalid/inline-table/mutate.toml @@ -0,0 +1,2 @@ +a = { b = 1 } +a.b = 2
\ No newline at end of file diff --git a/tests/data/invalid/inline-table/override-val-in-table.toml b/tests/data/invalid/inline-table/override-val-in-table.toml new file mode 100644 index 0000000..6e87cfa --- /dev/null +++ b/tests/data/invalid/inline-table/override-val-in-table.toml @@ -0,0 +1,5 @@ +[tab.nested] +inline-t = { nest = {} } + +[tab] +nested.inline-t.nest = 2 diff --git a/tests/data/invalid/inline-table/override-val-with-array.toml b/tests/data/invalid/inline-table/override-val-with-array.toml new file mode 100644 index 0000000..79b4f32 --- /dev/null +++ b/tests/data/invalid/inline-table/override-val-with-array.toml @@ -0,0 +1,3 @@ +inline-t = { nest = {} } + +[[inline-t.nest]] diff --git a/tests/data/invalid/inline-table/override-val-with-table.toml b/tests/data/invalid/inline-table/override-val-with-table.toml new file mode 100644 index 0000000..d0cd6b6 --- /dev/null +++ b/tests/data/invalid/inline-table/override-val-with-table.toml @@ -0,0 +1,3 @@ +inline-t = { nest = {} } + +[inline-t.nest] diff --git a/tests/data/invalid/inline-table/overwrite-implicitly.toml b/tests/data/invalid/inline-table/overwrite-implicitly.toml new file mode 100644 index 0000000..462c28f --- /dev/null +++ b/tests/data/invalid/inline-table/overwrite-implicitly.toml @@ -0,0 +1 @@ +a = { b = 1, b.c = 2 } diff --git a/tests/data/invalid/inline-table/overwrite-value-in-inner-array.toml b/tests/data/invalid/inline-table/overwrite-value-in-inner-array.toml new file mode 100644 index 0000000..34ddb85 --- /dev/null +++ b/tests/data/invalid/inline-table/overwrite-value-in-inner-array.toml @@ -0,0 +1 @@ +tab = { inner.table = [{}], inner.table.val = "bad" }
\ No newline at end of file diff --git a/tests/data/invalid/inline-table/overwrite-value-in-inner-table.toml b/tests/data/invalid/inline-table/overwrite-value-in-inner-table.toml new file mode 100644 index 0000000..750853f --- /dev/null +++ b/tests/data/invalid/inline-table/overwrite-value-in-inner-table.toml @@ -0,0 +1 @@ +tab = { inner = { dog = "best" }, inner.cat = "worst" }
\ No newline at end of file diff --git a/tests/data/invalid/inline-table/unclosed-empty.toml b/tests/data/invalid/inline-table/unclosed-empty.toml new file mode 100644 index 0000000..032edb7 --- /dev/null +++ b/tests/data/invalid/inline-table/unclosed-empty.toml @@ -0,0 +1 @@ +a={
\ No newline at end of file |