updated the readme. error-tested the local_to_utc methods. light changes to the makefile

This commit is contained in:
aj
2010-11-14 01:38:23 -08:00
parent bd4e6078f2
commit 63c8a29198
4 changed files with 38 additions and 11 deletions

10
test/ezic_tests.erl Normal file
View 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"))
].

View File

@@ -3,9 +3,19 @@
-include_lib("eunit/include/eunit.hrl").
all() ->
eunit:test(ezic_record)
setup(),
eunit:test(ezic)
, eunit:test(ezic_record)
, eunit:test(ezic_date)
, eunit:test(ezic_zone)
, eunit:test(ezic_parse)
, eunit:test(ezic_rule)
,ok.
%% temporary db init because mnesia data gets corrupted between starting and stopping nodes.
setup()->
ezic_db:init(),
ezic:load("priv/tzdata"),
ezic_flatten:flatten().