diff --git a/crates/compiler/test_gen/src/gen_primitives.rs b/crates/compiler/test_gen/src/gen_primitives.rs index 01179bf886..5a65af1f17 100644 --- a/crates/compiler/test_gen/src/gen_primitives.rs +++ b/crates/compiler/test_gen/src/gen_primitives.rs @@ -4067,3 +4067,21 @@ fn int_let_generalization() { RocStr ); } + +#[test] +#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] +fn pattern_match_char() { + assert_evals_to!( + indoc!( + r#" + c = 'A' + + when c is + 'A' -> "okay" + _ -> "FAIL" + "# + ), + RocStr::from("okay"), + RocStr + ); +}