Skip to content

Commit

Permalink
Add invalid test for literal multiline with newline
Browse files Browse the repository at this point in the history
We only tested this with """ .. """ before; also add one for " .. " and
' .. ' strings while we're at it.
  • Loading branch information
arp242 committed Dec 3, 2023
1 parent a2e0230 commit f466843
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 12 deletions.
13 changes: 8 additions & 5 deletions tests/files-toml-1.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,11 @@ invalid/key/empty.toml
invalid/key/end-in-escape.toml
invalid/key/escape.toml
invalid/key/hash.toml
invalid/key/multiline.toml
invalid/key/newline.toml
invalid/key/newline-1.toml
invalid/key/newline-2.toml
invalid/key/newline-3.toml
invalid/key/newline-4.toml
invalid/key/newline-5.toml
invalid/key/no-eol.toml
invalid/key/open-bracket.toml
invalid/key/partial-quoted.toml
Expand All @@ -225,9 +228,9 @@ invalid/key/space.toml
invalid/key/special-character.toml
invalid/key/start-bracket.toml
invalid/key/start-dot.toml
invalid/key/two-equals.toml
invalid/key/two-equals2.toml
invalid/key/two-equals3.toml
invalid/key/two-equals-1.toml
invalid/key/two-equals-2.toml
invalid/key/two-equals-3.toml
invalid/key/without-value-1.toml
invalid/key/without-value-2.toml
invalid/key/without-value-3.toml
Expand Down
13 changes: 8 additions & 5 deletions tests/files-toml-1.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,11 @@ invalid/key/empty.toml
invalid/key/end-in-escape.toml
invalid/key/escape.toml
invalid/key/hash.toml
invalid/key/multiline.toml
invalid/key/newline.toml
invalid/key/newline-1.toml
invalid/key/newline-2.toml
invalid/key/newline-3.toml
invalid/key/newline-4.toml
invalid/key/newline-5.toml
invalid/key/no-eol.toml
invalid/key/open-bracket.toml
invalid/key/partial-quoted.toml
Expand All @@ -218,9 +221,9 @@ invalid/key/single-open-bracket.toml
invalid/key/space.toml
invalid/key/start-bracket.toml
invalid/key/start-dot.toml
invalid/key/two-equals.toml
invalid/key/two-equals2.toml
invalid/key/two-equals3.toml
invalid/key/two-equals-1.toml
invalid/key/two-equals-2.toml
invalid/key/two-equals-3.toml
invalid/key/without-value-1.toml
invalid/key/without-value-2.toml
invalid/key/without-value-3.toml
Expand Down
2 changes: 2 additions & 0 deletions tests/invalid/key/newline-1.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
barekey
= 1
2 changes: 2 additions & 0 deletions tests/invalid/key/newline-2.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"quoted
key" = 1
2 changes: 2 additions & 0 deletions tests/invalid/key/newline-3.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'quoted
key' = 1
File renamed without changes.
2 changes: 2 additions & 0 deletions tests/invalid/key/newline-5.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'''long
key''' = 1
2 changes: 0 additions & 2 deletions tests/invalid/key/newline.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f466843

Please sign in to comment.