summaryrefslogtreecommitdiff
path: root/tests/ref
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-03 23:31:14 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-19 12:38:14 +0200
commit9bc393908a6b522c93034b87b8f9f21cb13d7d69 (patch)
treebfd619d0411ebcecc66c07b9eab6ad1979cd204b /tests/ref
parent3e033da84782e12ed529e6a88dd53b6a72199e8e (diff)
eval: add sqrt function for computing the square root
Diffstat (limited to 'tests/ref')
-rw-r--r--tests/ref/fate/eval6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ref/fate/eval b/tests/ref/fate/eval
index ad01891d9c..00e5887a9a 100644
--- a/tests/ref/fate/eval
+++ b/tests/ref/fate/eval
@@ -133,5 +133,11 @@ Evaluating 'ceil(123.123)'
Evaluating 'ceil(-123.123)'
'ceil(-123.123)' -> -123.000000
+Evaluating 'sqrt(1764)'
+'sqrt(1764)' -> 42.000000
+
+Evaluating 'sqrt(-1)'
+'sqrt(-1)' -> -nan
+
12.700000 == 12.7
0.931323 == 0.931322575