Add test cases for emqx_misc module
This commit is contained in:
parent
ebef0ec554
commit
6682eca19a
|
@ -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()))).
|
||||
|
||||
|
|
Loading…
Reference in New Issue