Skip to content

Commit 3209f3c

Browse files
committed
Add test for EscapeQuotedString multibyte handling
1 parent 4db5f57 commit 3209f3c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/ast/value.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,3 +708,12 @@ impl fmt::Display for TrimWhereField {
708708
})
709709
}
710710
}
711+
712+
#[cfg(test)]
713+
#[test]
714+
fn test_escape_quoted_string_with_multibyte_quote_char() {
715+
assert_eq!(
716+
format!("{}", escape_quoted_string("a🦀b🦀c", '🦀')),
717+
"a🦀🦀b🦀🦀c"
718+
);
719+
}

0 commit comments

Comments
 (0)