mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Replace busted gen test with reporting test
This commit is contained in:
parent
ae6f349669
commit
bd9c9cc184
3 changed files with 37 additions and 27 deletions
|
@ -4029,25 +4029,6 @@ fn mutually_recursive_captures() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn monomorphization_sees_polymorphic_recursion() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
foo : a, Bool -> Str
|
||||
foo = \in, b -> if b then "done" else bar in
|
||||
|
||||
bar = \_ -> foo {} Bool.true
|
||||
|
||||
foo "" Bool.false
|
||||
"#
|
||||
),
|
||||
RocStr::from("done"),
|
||||
RocStr
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn int_let_generalization() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue