mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
remove unneeded test
This commit is contained in:
parent
95177eee5a
commit
ac8e3928e3
1 changed files with 0 additions and 27 deletions
|
@ -3847,31 +3847,4 @@ mod test_reporting {
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn foobar() {
|
|
||||||
report_problem_as(
|
|
||||||
indoc!(
|
|
||||||
r#"
|
|
||||||
Num.addChecked 1 2
|
|
||||||
"#
|
|
||||||
),
|
|
||||||
indoc!(
|
|
||||||
r#"
|
|
||||||
── REDUNDANT PATTERN ───────────────────────────────────────────────────────────
|
|
||||||
|
|
||||||
The 3rd pattern is redundant:
|
|
||||||
|
|
||||||
1│ when Foo 1 2 3 is
|
|
||||||
2│ Foo _ 1 _ -> 1
|
|
||||||
3│ _ -> 2
|
|
||||||
4│ _ -> 3
|
|
||||||
^
|
|
||||||
|
|
||||||
Any value of this shape will be handled by a previous pattern, so this
|
|
||||||
one should be removed.
|
|
||||||
"#
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue