mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
add test for formatter: single-quoted char pattern
This commit is contained in:
parent
87041f8cd7
commit
ec81ce5ebc
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue