Advertisement
Guest User

Untitled

a guest
May 25th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. module Main where
  2.  
  3. import Tests.Tasty
  4. import Tests.Tasty.QuickCheck
  5.  
  6. oracleProps :: TestTree
  7. oracleProps = testGroup "Property Tests Using Prelude as Oracle"
  8. [ testProperty "take" (\(xs :: [Int]) (n :: NonNegative Int) ->
  9. take (getNonNegative n) xs == P.take (getNonNegative n) xs)
  10. , testProperty "drop" (\(xs :: [Int]) n ->
  11. drop (getNonNegative n) xs == P.drop (getNonNegative n) xs)
  12. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement