Skip to content

Commit

Permalink
Fix non-shrinking 'Arbitrary PathTemplate'
Browse files Browse the repository at this point in the history
Paths with escaped characters would, instead of shrinking, grow.
  • Loading branch information
harpocrates committed Nov 12, 2018
1 parent 7db8d71 commit e32b9d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ instance Arbitrary Verbosity where

instance Arbitrary PathTemplate where
arbitrary = toPathTemplate <$> arbitraryShortToken
shrink t = [ toPathTemplate s | s <- shrink (show t), not (null s) ]
shrink t = [ toPathTemplate s | s <- shrink (fromPathTemplate t), not (null s) ]


newtype NonMEmpty a = NonMEmpty { getNonMEmpty :: a }
Expand Down

0 comments on commit e32b9d1

Please sign in to comment.