summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-09-21 20:25:19 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-22 08:13:55 +0200
commit775af761a0805b2523923636020c5aebf764af13 (patch)
tree378897c98b1cb6a6b2286da37e4f95c4a09e2d69 /tests
parent05fc9e40a4e4f808d457512420b887f458d216bc (diff)
eval: test isnan(sqrt(-1)) instead of just sqrt(-1)
sqrt(-1) returns "some NaN", it's not specified which exactly.
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/fate/eval4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ref/fate/eval b/tests/ref/fate/eval
index 0e4844efc5..ef50292024 100644
--- a/tests/ref/fate/eval
+++ b/tests/ref/fate/eval
@@ -136,8 +136,8 @@ Evaluating 'ceil(-123.123)'
Evaluating 'sqrt(1764)'
'sqrt(1764)' -> 42.000000
-Evaluating 'sqrt(-1)'
-'sqrt(-1)' -> -nan
+Evaluating 'isnan(sqrt(-1))'
+'isnan(sqrt(-1))' -> 1.000000
Evaluating 'not(1)'
'not(1)' -> 0.000000