Skip to content

Commit

Permalink
adding test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikmota committed May 12, 2024
1 parent 6e0f4a1 commit 36081df
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/misc.rye
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,23 @@ section "Math functions"
equal { do\in math { cbrt 27 } } 3.000000
equal { do\in math { cbrt 12.3 } } 2.308350239753609
}

group "copysign"
mold\nowrap ""
{ { string } }
{
equal { do\in math { copysign 4.9 -1 } } -4.9
equal { do\in math { copysign 4.9 1 } } 4.9
}

group "dim"
mold\nowrap ""
{ { string } }
{
equal { do\in math { dim 2 -3 } } 5.000000
equal { do\in math { dim 8 -1 } } 9.000000
equal { do\in math { dim -4 -2 } } 0.000000
}

}

Expand Down

0 comments on commit 36081df

Please sign in to comment.