Skip to content

Commit

Permalink
Fix the other prop_show_read test (#121)
Browse files Browse the repository at this point in the history
This test used the '[Int]' instances of 'Read' and 'Show' instead of the
'DList Int' instances. See #117.
  • Loading branch information
spl authored Feb 17, 2024
1 parent f2289f7 commit 746f07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/DListProperties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ prop_intercalate sep =
eqWith (List.intercalate sep) (toList . intercalate (fromList sep) . List.map fromList)

prop_show_read :: [Int] -> Bool
prop_show_read = eqWith id (read . show)
prop_show_read = eqWith id (read . show) . fromList

prop_read_show :: [Int] -> Bool
prop_read_show x = eqWith id (show . f . read) $ "fromList " ++ show x
Expand Down

0 comments on commit 746f07b

Please sign in to comment.