updated the readme. error-tested the local_to_utc methods. light changes to the makefile
This commit is contained in:
10
test/ezic_tests.erl
Normal file
10
test/ezic_tests.erl
Normal file
@@ -0,0 +1,10 @@
|
||||
-module(ezic_tests).
|
||||
-include("include/ezic.hrl").
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
local_to_utc_errors_test_() ->
|
||||
ezic_db:init(),
|
||||
[
|
||||
?_assertError(ambiguous_zone, ezic:local_to_utc({{2010,11,7},{1,0,0}}, "America/Los_Angeles"))
|
||||
, ?_assertError(no_zone, ezic:local_to_utc({{2010,3,14},{2,30,0}}, "America/Los_Angeles"))
|
||||
].
|
||||
Reference in New Issue
Block a user