Skip to content

Commit

Permalink
fix name shadowing causing type error
Browse files Browse the repository at this point in the history
  • Loading branch information
chessai committed Nov 6, 2019
1 parent 87651ae commit 49d6195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ArrayFire/ArithSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ shouldBeEps :: Array Double -> Array Double -> Expectation
actual `shouldBeEps` expected = expect err_msg (cmpEps actual expected)
where
err_msg = "expected: " ++ show expected ++ "\n but got: " ++ show actual
cmpEps x y =
cmpEps a b =
let x :: Double
x = fromIntegral $ Prelude.abs $ x - y
x = fromIntegral $ Prelude.abs $ a - b
in x <= 1e-14

expect :: String -> Bool -> Expectation
Expand Down

0 comments on commit 49d6195

Please sign in to comment.