flattening algorithm needs to be reworked.

also, datetime methods aren't consistent in their naming and return values.
This commit is contained in:
aj
2010-11-10 03:18:57 -08:00
parent d84a0c1822
commit e48e793a36
5 changed files with 107 additions and 69 deletions

View File

@@ -15,20 +15,20 @@ split_by_name_test_() ->
project_end_test_() ->
project_end_utc_test_() ->
[
?_assertEqual({{2010,11,10},{16,20,0}},
ezic_zone:project_end(
ezic_zone:project_end_utc(
#zone{until={{2010,11,10},#tztime{time={10,20,0}, flag=w}}, gmtoff={-7,0,0}}
, {1,0,0}))
, ?_assertEqual({{2010,11,10},{16,20,0}},
ezic_zone:project_end(
ezic_zone:project_end_utc(
#zone{until={{2010,11,10},#tztime{time={9,20,0}, flag=s}}, gmtoff={-7,0,0}}
, {1,0,0}))
, ?_assertEqual({{2010,11,10},{16,20,0}},
ezic_zone:project_end(
ezic_zone:project_end_utc(
#zone{until={{2010,11,10},#tztime{time={16,20,0}, flag=u}}, gmtoff={-7,0,0}}
, {1,0,0}))
].