mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
WIP: Add Num.minI128
builtin (TODOs remain)
This commit is contained in:
parent
d2c2064782
commit
d7e2be306f
6 changed files with 70 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue