Explorar el Código

adding more tests

pull/8/merge^2
Dmitry Groshev hace 13 años
padre
commit
8e208ca5fd
Se han modificado 1 ficheros con 22 adiciones y 1 borrados
  1. +22
    -1
      test/proper_tests.erl

+ 22
- 1
test/proper_tests.erl Ver fichero

@ -77,7 +77,28 @@ prop_encode_decode() ->
Data == jiffy:decode(jiffy:encode(Data)) Data == jiffy:decode(jiffy:encode(Data))
end). end).
prop_encode_not_crash() ->
?FORALL(Data, any(),
begin
catch jiffy:encode(Data),
true
end).
prop_decode_not_crash_bin() ->
?FORALL(Data, binary(),
begin
catch jiffy:decode(Data),
true
end).
prop_decode_not_crash_any() ->
?FORALL(Data, any(),
begin
catch jiffy:decode(Data),
true
end).
proper_test_() -> proper_test_() ->
{timeout, 3600, {timeout, 3600,
?_assertEqual([], proper:module(proper_tests, [{to_file, user}, ?_assertEqual([], proper:module(proper_tests, [{to_file, user},
{numtests, 1000}]))}.
{numtests, 5000}]))}.

Cargando…
Cancelar
Guardar