summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Karen Sargsyan <karsar@ibms.sinica.edu.tw>2016-05-23 17:40:19 +0800
committerGravatar Karen Sargsyan <karsar@ibms.sinica.edu.tw>2016-05-23 17:40:19 +0800
commitae4778d7a3f4dacde39232b503bd134ce71444ee (patch)
tree7c7b838d73689bd6180ba532accde984c7e2d420 /tests
parent87a6ab4f9ac7b2b2c0438a724bfe971ec9231714 (diff)
abs and floor added
Diffstat (limited to 'tests')
-rw-r--r--tests/math.ur8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/math.ur b/tests/math.ur
index 5f8843de..964b73e6 100644
--- a/tests/math.ur
+++ b/tests/math.ur
@@ -17,6 +17,10 @@ fun main () = return <xml><body>
{[(acos 0.1)]}
<button value="atan of 0.1!" onclick={fn _ => alert (show (atan 0.1))}/>
{[(atan 0.1)]}
- <button value="atan2 of 0.1 and -0.2!" onclick={fn _ => alert (show (atan2 0.1 -0.2))}/>
- {[(atan2 0.1 -0.2)]}
+ <button value="atan2 of 0.1 and -0.2!" onclick={fn _ => alert (show (atan2 0.1 (-0.2)))}/>
+ {[(atan2 0.1 (-0.2))]}
+ <button value="floor of 34.5!" onclick={fn _ => alert (show (floor 34.5))}/>
+ {[(floor 34.5)]}
+ <button value="abs of -10.0!" onclick={fn _ => alert (show (abs (-10.0)))}/>
+ {[(abs (-10.0))]}
</body></xml>