mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
cleanup: we either have a guard or a test, not both
This commit is contained in:
parent
a22d1e9e4c
commit
541a62b109
2 changed files with 22 additions and 82 deletions
|
@ -514,11 +514,11 @@ fn if_guard_constructor() {
|
|||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
when Identity 42 is
|
||||
Identity 41 -> 0
|
||||
Identity s if s == 3 -> 0
|
||||
# Identity 43 -> 0
|
||||
Identity z -> z
|
||||
when Identity 42 "" is
|
||||
Identity 41 _ -> 0
|
||||
Identity 42 _ if 3 == 3 -> 0
|
||||
# Identity 43 _ -> 0
|
||||
Identity z _ -> z
|
||||
"#
|
||||
),
|
||||
42,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue