cleanup: we either have a guard or a test, not both

This commit is contained in:
Folkert 2021-07-10 14:01:18 +02:00
parent a22d1e9e4c
commit 541a62b109
2 changed files with 22 additions and 82 deletions

View file

@ -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,