Update mono tests

This commit is contained in:
Ayaz Hafiz 2023-03-25 13:55:11 -05:00
parent dd55be6142
commit aef21741ec
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 138 additions and 16 deletions

View file

@ -2789,3 +2789,21 @@ fn recursive_closure_with_transiently_used_capture() {
"#
)
}
#[mono_test]
fn when_guard_appears_multiple_times_in_compiled_decision_tree_issue_5176() {
indoc!(
r#"
app "test" provides [main] to "./platform"
go : U8 -> U8
go = \byte ->
when byte is
15 if Bool.true -> 1
b if Bool.true -> b + 2
_ -> 3
main = go '.'
"#
)
}