Skip to content

Commit

Permalink
Remove redundant brackets.
Browse files Browse the repository at this point in the history
  • Loading branch information
chungyc committed Oct 7, 2024
1 parent 92f897b commit 19eead7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions proto-lens-tests/src/Data/ProtoLens/TestUtil.hs
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,14 @@ roundTripTest name = TypedTest $ testGroup name
[ testProperty "shrink sanity" $
-- Disable automatic shrinking so the test behaves
-- sensibly if there's a bug in shrinkMessage.
noShrinking (
#if MIN_VERSION_QuickCheck(2,10,0)
noShrinking $
-- Limit the number of tests since shrinking is slow for large messages.
withMaxSuccess 20
(shrinkSanityProperty :: MessageProperty a)
#else
noShrinking (shrinkSanityProperty :: MessageProperty a)
#endif
(shrinkSanityProperty :: MessageProperty a))
, testProperty "wire" (wireRoundTripProperty :: MessageProperty a)
, testProperty "text" (textRoundTripProperty :: MessageProperty a)
]
Expand Down

0 comments on commit 19eead7

Please sign in to comment.