Skip to content

Commit

Permalink
Create a test for defining a super-table twice
Browse files Browse the repository at this point in the history
In my parser, this would've failed, because when I grabbed the
implicitly created table "a" for use with the new table at [a] I forgot
to mark it as being explicitly defined.
  • Loading branch information
llunacb committed Nov 17, 2023
1 parent 0a9c1b2 commit 1559b34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/files-toml-1.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ invalid/table/rrbrace.toml
invalid/table/text-after-table.toml
invalid/table/whitespace.toml
invalid/table/with-pound.toml
invalid/table/super-twice.toml
valid/array/array.json
valid/array/array.toml
valid/array/array-subtables.json
Expand Down
1 change: 1 addition & 0 deletions tests/files-toml-1.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ invalid/table/rrbrace.toml
invalid/table/text-after-table.toml
invalid/table/whitespace.toml
invalid/table/with-pound.toml
invalid/table/super-twice.toml
valid/array/array.json
valid/array/array.toml
valid/array/array-subtables.json
Expand Down
3 changes: 3 additions & 0 deletions tests/invalid/table/super-twice.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[a.b]
[a]
[a]

0 comments on commit 1559b34

Please sign in to comment.