mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Switch from floats to usize
This commit is contained in:
parent
d976f2fc93
commit
c8f6762deb
4 changed files with 8 additions and 8 deletions
|
@ -1623,11 +1623,11 @@ mod gen_num {
|
|||
|
||||
#[test]
|
||||
fn num_bytes_to_u16_ascii() {
|
||||
assert_evals_to!("Num.bytesToU16 1", 2.0, f64);
|
||||
assert_evals_to!("Num.bytesToU16 1", 2, usize);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn num_bytes_to_u16_ascii_2() {
|
||||
assert_evals_to!("Num.bytesToU16 0", 1.0, f64);
|
||||
assert_evals_to!("Num.bytesToU16 0", 1, usize);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue