Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. -module(test_meck).
  2. -mode(compile).
  3.  
  4. -include_lib("proper/include/proper.hrl").
  5.  
  6. -compile(export_all).
  7.  
  8. prop_l() ->
  9. ?FORALL(V, ?LET(L, integer(1,100), vector(L, integer())), V =:= V).
  10.  
  11. test() ->
  12. proper:quickcheck(prop_l(), [quiet, 1000]).
  13.  
  14. main(_) ->
  15. R1 = timer:tc(fun () -> test() end),
  16. io:format("~p~n", [R1]),
  17. meck:new(proper, [passthrough]),
  18. R2 = timer:tc(fun () -> test() end),
  19. io:format("~p~n", [R2]),
  20. meck:unload(proper),
  21. ok.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement