Skip to content

Commit

Permalink
Fix DNonEmpty prop_read_show test (#97)
Browse files Browse the repository at this point in the history
Fixes #96
  • Loading branch information
spl authored Aug 31, 2021
1 parent 697cf20 commit 1793a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/DNonEmptyProperties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ prop_show_read :: NonEmpty Int -> Bool
prop_show_read = eqWith id (read . show)

prop_read_show :: NonEmpty Int -> Bool
prop_read_show x = eqWith id (show . f . read) $ "fromNonEmpty " ++ show x
prop_read_show x = eqWith id (show . f . read) $ "fromNonEmpty (" ++ show x ++ ")"
where
f :: NonEmpty Int -> NonEmpty Int
f :: DNonEmpty Int -> DNonEmpty Int
f = id

exampleList :: [Int]
Expand Down

0 comments on commit 1793a5e

Please sign in to comment.