Fix some tests that were expecting usize over u64

This commit is contained in:
Richard Feldman 2024-02-11 12:21:50 -05:00
parent 6a6c25d32d
commit 50ea255703
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
9 changed files with 27 additions and 22 deletions

View file

@ -25,7 +25,7 @@ fn dict_empty_len() {
"
),
0,
usize
u64
);
}
@ -41,7 +41,7 @@ fn dict_insert_empty() {
"
),
1,
usize
u64
);
}

View file

@ -39,6 +39,6 @@ fn multi_branch_capturing() {
"#
),
(15, 3),
(usize, usize)
(u64, u64)
);
}

View file

@ -26,7 +26,7 @@ fn u64_alias() {
"
),
1,
usize
u64
);
}
@ -3076,7 +3076,7 @@ fn monomorphized_ints() {
"
),
18,
usize
u64
)
}
@ -3095,7 +3095,7 @@ fn monomorphized_floats() {
"
),
18,
usize
u64
)
}
@ -3119,7 +3119,7 @@ fn monomorphized_ints_names_dont_conflict() {
"
),
18,
usize
u64
)
}

View file

@ -1367,6 +1367,8 @@ fn linked_list_is_empty_2() {
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn linked_list_singleton() {
// verifies only that valid llvm is produced
use std::os::raw::c_void;
assert_evals_to!(
indoc!(
r#"
@ -1379,7 +1381,7 @@ fn linked_list_singleton() {
"#
),
0,
usize,
*const c_void,
|_| 0
);
}

View file

@ -75,7 +75,7 @@ fn list_int_dealloc() {
List.len [list, list, list]
"#
),
usize,
u64,
&[
Deallocated, // list
Deallocated // result
@ -114,7 +114,7 @@ fn list_str_dealloc() {
List.len [list, list]
"#
),
usize,
u64,
&[
Deallocated, // s
Deallocated, // list

View file

@ -25,7 +25,7 @@ fn empty_len() {
"
),
0,
usize
u64
);
}
@ -39,7 +39,7 @@ fn single_len() {
"
),
1,
usize
u64
);
}

View file

@ -59,7 +59,7 @@ fn str_split_empty_delimiter() {
"#
),
1,
usize
u64
);
assert_evals_to!(
@ -75,7 +75,7 @@ fn str_split_empty_delimiter() {
"#
),
3,
usize
u64
);
}
@ -89,7 +89,7 @@ fn str_split_bigger_delimiter_small_str() {
"#
),
1,
usize
u64
);
assert_evals_to!(
@ -105,7 +105,7 @@ fn str_split_bigger_delimiter_small_str() {
"#
),
3,
usize
u64
);
}
@ -244,7 +244,7 @@ fn str_split_small_str_big_delimiter() {
"#
),
3,
usize
u64
);
assert_evals_to!(

View file

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

View file

@ -23,7 +23,7 @@ fn str_split_empty_delimiter() {
"#
),
1,
usize
u64
);
}
@ -36,7 +36,7 @@ fn str_split_bigger_delimiter_small_str() {
"#
),
1,
usize
u64
);
}
@ -176,7 +176,7 @@ fn str_split_small_str_big_delimiter() {
"#
),
3,
usize
u64
);
assert_evals_to!(