Current section

Files

Jump to
elibphonenumber test phonenumber_timezone_test.erl
Raw

test/phonenumber_timezone_test.erl

-module(phonenumber_timezone_test).
-include_lib("eunit/include/eunit.hrl").
get_timezone_test() ->
application:ensure_all_started(elibphonenumber),
{ok, [<<"America/Los_Angeles">>]} = phonenumber_to_timezones:timezones_for_number(<<"16502530000">>),
{ok, [<<"America/Nassau">>]} = phonenumber_to_timezones:timezones_for_number(<<"+12423651234">>),
false = phonenumber_to_timezones:timezones_for_number(<<"+44743655551">>).