Add test cases for emqx_misc module

This commit is contained in:
Feng Lee 2019-11-12 15:46:27 +08:00
parent ebef0ec554
commit 6682eca19a
1 changed files with 9 additions and 0 deletions

View File

@ -113,3 +113,12 @@ drain(Acc) ->
lists:reverse(Acc)
end.
t_rand_seed(_) ->
?assert(is_tuple(emqx_misc:rand_seed())).
t_now_to_secs(_) ->
?assert(is_integer(emqx_misc:now_to_secs(os:timestamp()))).
t_now_to_ms(_) ->
?assert(is_integer(emqx_misc:now_to_ms(os:timestamp()))).