WIP: Add Num.minI128 builtin (TODOs remain)

This commit is contained in:
Jan Van Bruggen 2022-01-15 14:05:31 -07:00
parent d2c2064782
commit d7e2be306f
6 changed files with 70 additions and 0 deletions

View file

@ -1829,6 +1829,20 @@ fn shift_right_zf_by() {
assert_evals_to!("Num.shiftRightBy 3 0b0000_1100u8", 0b0000_0011, i64);
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn min_i128() {
assert_evals_to!(
indoc!(
r#"
Num.minI128
"#
),
i128::MIN,
i128
);
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn max_i128() {