mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
wasm: Enable some tests that are working now
This commit is contained in:
parent
ef47ced57a
commit
ef1e86cca6
2 changed files with 10 additions and 8 deletions
|
@ -1343,7 +1343,7 @@ fn linked_list_is_empty_2() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
fn linked_list_singleton() {
|
fn linked_list_singleton() {
|
||||||
// verifies only that valid llvm is produced
|
// verifies only that valid llvm is produced
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
|
@ -1479,7 +1479,10 @@ fn rbtree_insert() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(all(any(feature = "gen-llvm"), not(feature = "gen-llvm-wasm")))]
|
#[cfg(all(
|
||||||
|
any(feature = "gen-llvm", feature = "gen-wasm"),
|
||||||
|
not(feature = "gen-llvm-wasm")
|
||||||
|
))]
|
||||||
fn rbtree_balance_3() {
|
fn rbtree_balance_3() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
@ -1497,9 +1500,8 @@ fn rbtree_balance_3() {
|
||||||
balance 0 Empty
|
balance 0 Empty
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
false,
|
0,
|
||||||
*const i64,
|
usize // treat pointer as usize for null check
|
||||||
|x: *const i64| x.is_null()
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -477,7 +477,7 @@ fn nested_pattern_match() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
fn if_guard_vanilla() {
|
fn if_guard_vanilla() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
@ -1363,7 +1363,7 @@ fn issue_2365_monomorphize_tag_with_non_empty_ext_var() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
fn issue_2365_monomorphize_tag_with_non_empty_ext_var_wrapped() {
|
fn issue_2365_monomorphize_tag_with_non_empty_ext_var_wrapped() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
@ -1392,7 +1392,7 @@ fn issue_2365_monomorphize_tag_with_non_empty_ext_var_wrapped() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
fn issue_2365_monomorphize_tag_with_non_empty_ext_var_wrapped_nested() {
|
fn issue_2365_monomorphize_tag_with_non_empty_ext_var_wrapped_nested() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue