Correct accuracy for Double tests

This commit is contained in:
Christian Marie 2015-03-18 09:14:58 +11:00
parent e45beddd35
commit 24e32f194e

View file

@ -61,7 +61,7 @@ spec = describe "Servant.Common.Text" $ do
-- http://en.wikipedia.org/wiki/Floating_point#Internal_representation -- http://en.wikipedia.org/wiki/Floating_point#Internal_representation
it "holds for Double" $ it "holds for Double" $
property $ \x -> property $ \x ->
x < 1.0e15 && x > 1.0e-16 ==> x < 1.0e15 && x > 1.0e-15 ==>
textLaw (x :: Double) textLaw (x :: Double)
it "holds for Float" $ it "holds for Float" $