Skip to content

Commit

Permalink
Fix stimes property
Browse files Browse the repository at this point in the history
See #30
  • Loading branch information
phadej authored and spl committed Jan 12, 2017
1 parent e13a1ab commit dc86c92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ prop_Semigroup_sconcat :: NonEmpty [Int] -> Bool
prop_Semigroup_sconcat xs = sconcat xs == toList (sconcat (fmap fromList xs))

prop_Semigroup_stimes :: Int -> [Int] -> Bool
prop_Semigroup_stimes n xs = stimes n xs == toList (stimes n (fromList xs))
prop_Semigroup_stimes n xs =
n < 0 || stimes n xs == toList (stimes n (fromList xs))
#endif

--------------------------------------------------------------------------------
Expand Down

0 comments on commit dc86c92

Please sign in to comment.