test: improve proper test so it generates more cases
This commit is contained in:
parent
a66d01d6f0
commit
37f42a486c
|
@ -959,7 +959,7 @@ prop_format_date_fun() ->
|
||||||
Args1 = [<<"second">>, <<"+07:00">>, <<"%m--%d--%y---%H:%M:%S%Z">>],
|
Args1 = [<<"second">>, <<"+07:00">>, <<"%m--%d--%y---%H:%M:%S%Z">>],
|
||||||
?FORALL(
|
?FORALL(
|
||||||
S,
|
S,
|
||||||
erlang:system_time(second),
|
range(0, 4000000000),
|
||||||
S ==
|
S ==
|
||||||
apply_func(
|
apply_func(
|
||||||
date_to_unix_ts,
|
date_to_unix_ts,
|
||||||
|
@ -975,7 +975,7 @@ prop_format_date_fun() ->
|
||||||
Args2 = [<<"millisecond">>, <<"+04:00">>, <<"--%m--%d--%y---%H:%M:%S%Z">>],
|
Args2 = [<<"millisecond">>, <<"+04:00">>, <<"--%m--%d--%y---%H:%M:%S%Z">>],
|
||||||
?FORALL(
|
?FORALL(
|
||||||
S,
|
S,
|
||||||
erlang:system_time(millisecond),
|
range(0, 4000000000),
|
||||||
S ==
|
S ==
|
||||||
apply_func(
|
apply_func(
|
||||||
date_to_unix_ts,
|
date_to_unix_ts,
|
||||||
|
@ -991,7 +991,7 @@ prop_format_date_fun() ->
|
||||||
Args = [<<"second">>, <<"+08:00">>, <<"%y-%m-%d-%H:%M:%S%Z">>],
|
Args = [<<"second">>, <<"+08:00">>, <<"%y-%m-%d-%H:%M:%S%Z">>],
|
||||||
?FORALL(
|
?FORALL(
|
||||||
S,
|
S,
|
||||||
erlang:system_time(second),
|
range(0, 4000000000),
|
||||||
S ==
|
S ==
|
||||||
apply_func(
|
apply_func(
|
||||||
date_to_unix_ts,
|
date_to_unix_ts,
|
||||||
|
@ -1009,7 +1009,7 @@ prop_format_date_fun() ->
|
||||||
ArgsOffset = [<<"second">>, <<"+08:00">>, <<"%y-%m-%d-%H:%M:%S%Z">>],
|
ArgsOffset = [<<"second">>, <<"+08:00">>, <<"%y-%m-%d-%H:%M:%S%Z">>],
|
||||||
?FORALL(
|
?FORALL(
|
||||||
S,
|
S,
|
||||||
erlang:system_time(second),
|
range(0, 4000000000),
|
||||||
S ==
|
S ==
|
||||||
apply_func(
|
apply_func(
|
||||||
date_to_unix_ts,
|
date_to_unix_ts,
|
||||||
|
|
Loading…
Reference in New Issue