Re-added tests

This commit is contained in:
Asher Frost 2024-11-28 10:11:05 -05:00
parent 62db49f7d2
commit 0eb11932d9
No known key found for this signature in database
GPG key ID: 4C8BA25CB3670AF4

View file

@ -3944,3 +3944,13 @@ fn infinity_f32() {
fn infinity_f64() { fn infinity_f64() {
assert_evals_to!(r"Num.infinityF64", f64::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);
}