test_gen: change some i64's to usize's

This commit is contained in:
Brian Carroll 2022-08-04 09:23:46 +01:00
parent 7f95483ea8
commit be6408227a
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0

View file

@ -1187,7 +1187,7 @@ fn return_wrapped_function_pointer() {
"#
),
1,
i64,
usize,
|_| 1
);
}
@ -1209,7 +1209,7 @@ fn return_wrapped_function_pointer_b() {
"#
),
1,
i64,
usize,
|_| 1
);
}
@ -1235,7 +1235,7 @@ fn return_wrapped_closure() {
"#
),
1,
i64,
usize,
|_| 1
);
}
@ -1500,8 +1500,9 @@ fn rbtree_balance_3() {
balance 0 Empty
"#
),
0,
usize // treat pointer as usize for null check
false,
usize,
|x: usize| x == 0
);
}
@ -1882,7 +1883,7 @@ fn task_always_twice() {
"#
),
0,
i64,
usize,
|_| 0
);
}
@ -1912,7 +1913,7 @@ fn wildcard_rigid() {
"#
),
0,
i64,
usize,
|_| 0
);
}
@ -1941,7 +1942,7 @@ fn alias_of_alias_with_type_arguments() {
"#
),
0,
i64,
usize,
|_| 0
);
}
@ -3616,7 +3617,7 @@ fn lambda_capture_niches_have_captured_function_in_closure() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn recursive_call_capturing_function() {
assert_evals_to!(
indoc!(