mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Update expected failure tests to use expect_runtime_error_panic
This commit is contained in:
parent
823e32961f
commit
3c2822224a
1 changed files with 11 additions and 2 deletions
|
@ -1,6 +1,9 @@
|
||||||
#[cfg(feature = "gen-llvm")]
|
#[cfg(feature = "gen-llvm")]
|
||||||
use crate::helpers::llvm::assert_evals_to;
|
use crate::helpers::llvm::assert_evals_to;
|
||||||
|
|
||||||
|
#[cfg(feature = "gen-llvm")]
|
||||||
|
use crate::helpers::llvm::expect_runtime_error_panic;
|
||||||
|
|
||||||
// #[cfg(feature = "gen-dev")]
|
// #[cfg(feature = "gen-dev")]
|
||||||
// use crate::helpers::dev::assert_evals_to;
|
// use crate::helpers::dev::assert_evals_to;
|
||||||
|
|
||||||
|
@ -2435,7 +2438,10 @@ fn list_any_empty_with_unknown_element_type() {
|
||||||
// Application crashed with message
|
// Application crashed with message
|
||||||
// UnresolvedTypeVar compiler/mono/src/ir.rs line 3775
|
// UnresolvedTypeVar compiler/mono/src/ir.rs line 3775
|
||||||
// Shutting down
|
// Shutting down
|
||||||
assert_evals_to!("List.any [] (\\_ -> True)", false, bool);
|
//
|
||||||
|
// TODO: eventually we should insert the empty type for unresolved type
|
||||||
|
// variables, since that means they're unbound.
|
||||||
|
expect_runtime_error_panic!("List.any [] (\\_ -> True)");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -2457,7 +2463,10 @@ fn list_all_empty_with_unknown_element_type() {
|
||||||
// Application crashed with message
|
// Application crashed with message
|
||||||
// UnresolvedTypeVar compiler/mono/src/ir.rs line 3775
|
// UnresolvedTypeVar compiler/mono/src/ir.rs line 3775
|
||||||
// Shutting down
|
// Shutting down
|
||||||
assert_evals_to!("List.all [] (\\_ -> True)", false, bool);
|
//
|
||||||
|
// TODO: eventually we should insert the empty type for unresolved type
|
||||||
|
// variables, since that means they're unbound.
|
||||||
|
expect_runtime_error_panic!("List.all [] (\\_ -> True)");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue