1- {-# LANGUAGE BlockArguments #-}
21{-# LANGUAGE ScopedTypeVariables #-}
32{-# OPTIONS_GHC -fno-warn-orphans #-}
43
@@ -789,7 +788,7 @@ testsFloating = testGroup "RealFloat"
789788 , ( 4.294967295 , " 4.294967295e0" )
790789 ]
791790 , testGroup " d2sStandard"
792- [ testCase " specific" do
791+ [ testCase " specific" $ do
793792 singleMatches (formatDouble (standard 2 )) (flip (showFFloat (Just 2 )) [] ) ( 12.3 , " 12.30" )
794793 singleMatches (formatDouble (standard 2 )) (flip (showFFloat (Just 2 )) [] ) ( 12.345 , " 12.34" )
795794 singleMatches (formatDouble (standard 2 )) (flip (showFFloat (Just 2 )) [] ) ( 12.3451 , " 12.35" )
@@ -805,7 +804,7 @@ testsFloating = testGroup "RealFloat"
805804 testCase " specific zero" $
806805 singleMatches (formatDouble (standard 3 )) (flip (showFFloat (Just 3 )) [] ) ( 0.0 , " 0.000" )
807806 -- NonZero should be removed when zero case fixed
808- , testProperty " standard N" \ (NonNegative p, NonZero (d :: Double )) -> (LC. unpack . toLazyByteString)
807+ , testProperty " standard N" $ \ (NonNegative p, NonZero (d :: Double )) -> (LC. unpack . toLazyByteString)
809808 (formatDouble (standard p) d) === showFFloat (Just p) d " "
810809 ]
811810 , testMatches " d2sLooksLikePowerOf5" doubleDec show
@@ -983,7 +982,7 @@ testsFloating = testGroup "RealFloat"
983982 ]
984983 where
985984 testExpected :: TestName -> (a -> Builder ) -> [(a , String )] -> TestTree
986- testExpected name dec = testCase name . traverse_ \ (x, ref) -> LC. unpack (toLazyByteString (dec x)) @?= ref
985+ testExpected name dec = testCase name . traverse_ ( \ (x, ref) -> LC. unpack (toLazyByteString (dec x)) @?= ref)
987986
988987 singleMatches :: (a -> Builder ) -> (a -> String ) -> (a , String ) -> Assertion
989988 singleMatches dec refdec (x, ref) = do
0 commit comments