mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Re-added tests
This commit is contained in:
parent
62db49f7d2
commit
0eb11932d9
1 changed files with 10 additions and 0 deletions
|
@ -3944,3 +3944,13 @@ fn infinity_f32() {
|
|||
fn infinity_f64() {
|
||||
assert_evals_to!(r"Num.infinityF64", f64::INFINITY, f64);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-dev", feature = "gen-wasm"))]
|
||||
fn cast_signed_unsigned() {
|
||||
assert_evals_to!(r"Num.toI16 255u8",255,i16);
|
||||
assert_evals_to!(r"Num.toU16 127i8",127,u16);
|
||||
assert_evals_to!(r"Num.toU8 127i8",127,u8);
|
||||
assert_evals_to!(r"Num.toI8 127u8",127,i8);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue