diff options
author | Ben Gamari <ben@smart-cactus.org> | 2017-03-03 17:32:23 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-03-03 17:33:13 -0500 |
commit | 2f8534b512474188c54885e1b488798affaf08e2 (patch) | |
tree | b2e4ac5dc7b6bd3caa1a3c7042526ac50eb3b292 /testsuite/tests/numeric/should_run | |
parent | 96f5656d2ae885fa4b0227c4650b1c375e16dd00 (diff) | |
download | haskell-2f8534b512474188c54885e1b488798affaf08e2.tar.gz |
testsuite: Add a NaN case to numrun015
Diffstat (limited to 'testsuite/tests/numeric/should_run')
-rw-r--r-- | testsuite/tests/numeric/should_run/numrun015.hs | 1 | ||||
-rw-r--r-- | testsuite/tests/numeric/should_run/numrun015.stdout | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/tests/numeric/should_run/numrun015.hs b/testsuite/tests/numeric/should_run/numrun015.hs index 070c5ab5bd..75d4a79b59 100644 --- a/testsuite/tests/numeric/should_run/numrun015.hs +++ b/testsuite/tests/numeric/should_run/numrun015.hs @@ -18,3 +18,4 @@ main = do print $ absD (-1 / 0) print $ absF (1 / 0) print $ absD (1 / 0) + print $ absD $ sqrt (-1) diff --git a/testsuite/tests/numeric/should_run/numrun015.stdout b/testsuite/tests/numeric/should_run/numrun015.stdout index 33cdeb42bb..c30dd621c0 100644 --- a/testsuite/tests/numeric/should_run/numrun015.stdout +++ b/testsuite/tests/numeric/should_run/numrun015.stdout @@ -8,3 +8,4 @@ Infinity Infinity Infinity Infinity +NaN |