Merge pull request #2245 from rtfeldman/wasm-tag-eq

Wasm tag equality
This commit is contained in:
Folkert de Vries 2021-12-21 16:24:14 +01:00 committed by GitHub
commit 18187bc43f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 467 additions and 193 deletions

View file

@ -179,7 +179,7 @@ fn record() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn unit() {
assert_evals_to!("Unit == Unit", true, bool);
assert_evals_to!("Unit != Unit", false, bool);
@ -231,7 +231,7 @@ fn large_str() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn eq_result_tag_true() {
assert_evals_to!(
indoc!(
@ -251,7 +251,7 @@ fn eq_result_tag_true() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn eq_result_tag_false() {
assert_evals_to!(
indoc!(
@ -271,7 +271,7 @@ fn eq_result_tag_false() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn eq_expr() {
assert_evals_to!(
indoc!(
@ -293,7 +293,7 @@ fn eq_expr() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn eq_linked_list() {
assert_evals_to!(
indoc!(
@ -351,7 +351,7 @@ fn eq_linked_list() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn eq_linked_list_false() {
assert_evals_to!(
indoc!(
@ -373,7 +373,7 @@ fn eq_linked_list_false() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn eq_nullable_expr() {
assert_evals_to!(
indoc!(
@ -502,7 +502,7 @@ fn list_neq_nested() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn compare_union_same_content() {
assert_evals_to!(
indoc!(
@ -524,7 +524,7 @@ fn compare_union_same_content() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn compare_recursive_union_same_content() {
assert_evals_to!(
indoc!(
@ -546,7 +546,7 @@ fn compare_recursive_union_same_content() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn compare_nullable_recursive_union_same_content() {
assert_evals_to!(
indoc!(