Skip to content

Commit

Permalink
Merge pull request #86 from marzer/dotted-key-value-pair-injection
Browse files Browse the repository at this point in the history
Add tests for invalid injection into tables after-the-fact via dotted keys
  • Loading branch information
arp242 committed Sep 7, 2021
2 parents 51f2e53 + d3a5a15 commit f2f2280
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/invalid/table/injection-1.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[a.b.c]
z = 9
[a]
b.c.t = "Using dotted keys to add to [a.b.c] after explicitly defining it above is not allowed"

# see https://github.com/toml-lang/toml/issues/846
6 changes: 6 additions & 0 deletions tests/invalid/table/injection-2.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[a.b.c.d]
z = 9
[a]
b.c.d.k.t = "Using dotted keys to add to [a.b.c.d] after explicitly defining it above is not allowed"

# see https://github.com/toml-lang/toml/issues/846

0 comments on commit f2f2280

Please sign in to comment.