There was an error while loading. Please reload this page.
1 parent 8b88cd6 commit 9655816Copy full SHA for 9655816
tests/Tests/SpecFunctions.hs
@@ -36,6 +36,13 @@ erfcTol = 4
36
erfcLargeTol = 64
37
#endif
38
39
+isGHCJS :: Bool
40
+#if defined(__GHCJS__)
41
+isGHCJS = True
42
+#else
43
+isGHCJS = False
44
+#endif
45
+
46
tests :: TestTree
47
tests = testGroup "Special functions"
48
[ testGroup "erf"
@@ -81,6 +88,7 @@ tests = testGroup "Special functions"
81
88
[ testCase "incompleteGamma table" $
82
89
forTable "tests/tables/igamma.dat" $ \[a,x,exact] -> do
83
90
let err | a < 10 = 16
91
+ | a <= 101 = if isGHCJS then 64 else 32
84
92
| a == 201 = 200
85
93
| otherwise = 32
86
94
checkTabularPure err (show (a,x)) exact (incompleteGamma a x)
0 commit comments