mirror of https://github.com/kdl-org/kdl-rs.git
add quick multiline parsing test for a corner case
This commit is contained in:
parent
91cfbc0781
commit
e65d0546bc
|
|
@ -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 \"\"\""))
|
||||
|
|
|
|||
Loading…
Reference in New Issue