Skip to content

Commit e65d054

Browse files
committed
add quick multiline parsing test for a corner case
1 parent 91cfbc0 commit e65d054

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/v2_parser.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,10 @@ mod string_tests {
14331433
Some(KdlValue::String("".into())),
14341434
"Escaped whitespace with proper prefix"
14351435
);
1436+
assert_eq!(
1437+
string.parse(new_input("\"\"\"\n\\\"\"\"\n\"\"\"")).unwrap(),
1438+
Some(KdlValue::String("\"\"\"".into()))
1439+
);
14361440

14371441
assert!(string
14381442
.parse(new_input("\"\"\"\nfoo\n bar\n baz\n \"\"\""))

0 commit comments

Comments
 (0)