Skip to content

Commit

Permalink
Adding test cases for new math functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikmota committed Jun 2, 2024
1 parent 35792cb commit 0b0b602
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/misc.rye
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,31 @@ section "Math functions"
equal { do\in math { erfcinv -1 } } "-Inf"
equal { do\in math { erfcinv 1.5 } } "NaN"
}

group "exp"
mold\nowrap ""
{ { string } }
{
equal { do\in math { exp 2 } } 7.38905609893065
}
group "exp2"
mold\nowrap ""
{ { string } }
{
equal { do\in math { exp2 5 } } 32.000000
}
group "expm1"
mold\nowrap ""
{ { string } }
{
equal { do\in math { expm1 2 } } 6.389056
}
group "fma"
mold\nowrap ""
{ { string } }
{
equal { do\in math { fma 2.0 4.0 6.0 } } 14.00
}

}

Expand Down

0 comments on commit 0b0b602

Please sign in to comment.