add quick multiline parsing test for a corner case

This commit is contained in:
Kat Marchán 2024-12-15 18:10:18 -08:00
parent 91cfbc0781
commit e65d0546bc
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 4 additions and 0 deletions

View File

@ -1433,6 +1433,10 @@ mod string_tests {
Some(KdlValue::String("".into())),
"Escaped whitespace with proper prefix"
);
assert_eq!(
string.parse(new_input("\"\"\"\n\\\"\"\"\n\"\"\"")).unwrap(),
Some(KdlValue::String("\"\"\"".into()))
);
assert!(string
.parse(new_input("\"\"\"\nfoo\n bar\n baz\n \"\"\""))