We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49d6195 commit 0fe3725Copy full SHA for 0fe3725
test/ArrayFire/ArithSpec.hs
@@ -98,9 +98,10 @@ shouldBeEps :: Array Double -> Array Double -> Expectation
98
actual `shouldBeEps` expected = expect err_msg (cmpEps actual expected)
99
where
100
err_msg = "expected: " ++ show expected ++ "\n but got: " ++ show actual
101
+ cmpEps :: Array Double -> Array Double -> Bool
102
cmpEps a b =
103
let x :: Double
- x = fromIntegral $ Prelude.abs $ a - b
104
+ x = getScalar $ Prelude.abs $ a - b
105
in x <= 1e-14
106
107
expect :: String -> Bool -> Expectation
0 commit comments