Skip to content

Commit

Permalink
Adding test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikmota committed Jul 28, 2024
1 parent 72d9b09 commit 4d1523f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/misc.rye
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,24 @@ section "Math functions"
{
equal { do\in math { trunc 1.234567 } } 1.000000
}
group "log10"
mold\nowrap ""
{ { integer decimal } }
{
equal { do\in math { log10 100 } } 2.000000
}
group "log1"
mold\nowrap ""
{ { integer decimal } }
{
equal { do\in math { log1p 10.58 } } 2.449279472144849
}
group "logb"
mold\nowrap ""
{ { integer decimal } }
{
equal { do\in math { logb 123.45 } } 6.000000
}

}

Expand Down

0 comments on commit 4d1523f

Please sign in to comment.