mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 17:17:26 +00:00
Num.pow for Dec
This commit is contained in:
parent
2e648cfdd5
commit
e16b25c93e
7 changed files with 125 additions and 2 deletions
|
@ -1819,10 +1819,16 @@ fn float_compare() {
|
|||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn pow() {
|
||||
fn pow_f64() {
|
||||
assert_evals_to!("Num.pow 2.0f64 2.0f64", 4.0, f64);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn pow_dec() {
|
||||
assert_evals_to!("Num.pow 2.0dec 2.0dec", RocDec::from(4), RocDec);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn round_f64() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue