Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. module ExpectoUnqouteFsCheck
  2.  
  3. open Expecto
  4. open Expecto.ExpectoFsCheck
  5. open Swensen.Unquote
  6.  
  7. let tests =
  8. testList "FsCheck smaples" [
  9. testProperty "Addtion is commutative" <| fun a b ->
  10. a + b = b + a
  11.  
  12. testProperty "Rev of Rec of list is the orginal list" <|
  13. fun (xs : list<int>) -> List.rev (List.rev xs) = xs
  14. ]
  15.  
  16. runTests defaultConfig tests |> ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement