mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
working happy path
This commit is contained in:
parent
d3ac7d616d
commit
644def72f1
7 changed files with 103 additions and 59 deletions
|
@ -975,7 +975,7 @@ fn overflow_frees_list() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
#[should_panic(expected = "Roc failed with message: ")]
|
||||
fn undefined_variable() {
|
||||
assert_evals_to!(
|
||||
|
@ -992,6 +992,24 @@ fn undefined_variable() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
#[should_panic(expected = "Roc failed with message: ")]
|
||||
fn a_crash() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
if Bool.true then
|
||||
crash "a crash"
|
||||
else
|
||||
0u64
|
||||
"#
|
||||
),
|
||||
3,
|
||||
i64
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
#[should_panic(expected = "Roc failed with message: ")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue