add test for formatter: single-quoted char pattern

This commit is contained in:
Austin Clements 2022-10-28 16:36:24 -05:00
parent 87041f8cd7
commit ec81ce5ebc

View file

@ -3864,6 +3864,19 @@ mod test_fmt {
); );
} }
#[test]
fn when_with_single_quote_char() {
expr_formats_same(
indoc!(
r#"
when x is
'0' -> 0
'1' -> 1
"#
)
);
}
// NEWLINES // NEWLINES
#[test] #[test]