mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Use runtime representation of values when building structural eq
Closes #4348
This commit is contained in:
parent
99ad019d75
commit
7986514d20
2 changed files with 20 additions and 0 deletions
|
@ -4085,3 +4085,21 @@ fn pattern_match_char() {
|
|||
RocStr
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn issue_4348() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
str = "z"
|
||||
(\_ ->
|
||||
when str is
|
||||
"z" -> "okay"
|
||||
_ -> "") "FAIL"
|
||||
"#
|
||||
),
|
||||
RocStr::from("okay"),
|
||||
RocStr
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue