mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 13:13:49 +00:00
Fix tests
This commit is contained in:
parent
790078db7d
commit
dcec14f8c1
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ mod tests {
|
|||
const fn gcd_by_table_test<const N: usize>() {
|
||||
let mut i = 0;
|
||||
while i <= N {
|
||||
assert!(gcd_by_table::<N>(i) == gcd(N, i));
|
||||
assert!(gcd_by_table::<N>(i as u64) == gcd(N as u64, i as u64));
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ mod tests {
|
|||
const fn gcd_by_table_test<const N: usize>() {
|
||||
let mut i = 0;
|
||||
while i <= 2 * N {
|
||||
assert!(n_over_gcd_by_table::<N>(i) == N / gcd(N, i));
|
||||
assert!(n_over_gcd_by_table::<N>(i as u64) == N as u64 / gcd(N as u64, i as u64));
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue