Use usize instead of pointer type for wasm tests

This commit is contained in:
Richard Feldman 2024-02-11 12:35:37 -05:00
parent 24a38c4a26
commit ca8f83b896
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
2 changed files with 3 additions and 7 deletions

View file

@ -1368,7 +1368,6 @@ fn linked_list_is_empty_2() {
fn linked_list_singleton() { fn linked_list_singleton() {
// verifies only that valid llvm is produced // verifies only that valid llvm is produced
use std::os::raw::c_void;
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
r#" r#"
@ -1381,7 +1380,7 @@ fn linked_list_singleton() {
"# "#
), ),
0, 0,
*const c_void, usize,
|_| 0 |_| 0
); );
} }

View file

@ -13,9 +13,6 @@ use crate::helpers::wasm::assert_evals_to;
#[cfg(test)] #[cfg(test)]
use indoc::indoc; use indoc::indoc;
#[cfg(test)]
use std::os::raw::c_void;
use roc_mono::layout::{LayoutRepr, STLayoutInterner}; use roc_mono::layout::{LayoutRepr, STLayoutInterner};
#[cfg(test)] #[cfg(test)]
use roc_std::{RocList, RocStr, U128}; use roc_std::{RocList, RocStr, U128};
@ -1022,7 +1019,7 @@ fn nested_recursive_literal() {
#" #"
), ),
0, 0,
*const c_void, usize,
|_| 0 |_| 0
); );
} }
@ -1164,7 +1161,7 @@ fn recursive_tag_union_into_flat_tag_union() {
"# "#
), ),
0, 0,
*const c_void, usize,
|_| 0 |_| 0
) )
} }