Removes extra whitespace at EOL

This commit is contained in:
Jorge Diz Pico
2013-02-28 11:27:28 +01:00
parent d7d8f70463
commit f216d3ddf8
18 changed files with 107 additions and 108 deletions

View File

@@ -5,30 +5,30 @@
project_next_test_() ->
[
% simple UTC example
?_assertEqual({2010, {{2010,11,10},{16,20,0}}},
?_assertEqual({2010, {{2010,11,10},{16,20,0}}},
ezic_rule:project_next(
#rule{from=1984, to=2032, in=11, on=10, at=#tztime{time={16,20,0}, flag=u}}
, {-5,0,0}, {-1,0,0}, {{2010,11,10},{0,0,0}}
))
% skip a year UTC example
, ?_assertEqual({2011, {{2011,11,10},{16,20,0}}},
, ?_assertEqual({2011, {{2011,11,10},{16,20,0}}},
ezic_rule:project_next(
#rule{from=1984, to=2032, in=11, on=10, at=#tztime{time={16,20,0}, flag=u}}
, {-5,0,0}, {-1,0,0}, {{2010,11,10},{16,21,0}}
))
% skip 3 years UTC example
, ?_assertEqual({2013, {{2013,11,10},{16,20,0}}},
, ?_assertEqual({2013, {{2013,11,10},{16,20,0}}},
ezic_rule:project_next(
#rule{from=1984, to=2032, in=11, on=10, at=#tztime{time={16,20,0}, flag=u}}
, {-5,0,0}, {-1,0,0}, {{2012,11,11},{16,20,0}}
))
% no solution
, ?_assertEqual(none,
, ?_assertEqual(none,
ezic_rule:project_next(
#rule{from=1984, to=2010, in=11, on=10, at=#tztime{time={16,20,0}, flag=u}}
, {-5,0,0}, {-1,0,0}, {{2012,11,11},{16,20,0}}

View File

@@ -17,17 +17,17 @@ split_by_name_test_() ->
project_end_utc_test_() ->
[
?_assertEqual({{2010,11,10},{16,20,0}},
?_assertEqual({{2010,11,10},{16,20,0}},
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}},
, ?_assertEqual({{2010,11,10},{16,20,0}},
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}},
, ?_assertEqual({{2010,11,10},{16,20,0}},
ezic_zone:project_end_utc(
#zone{until={{2010,11,10},#tztime{time={16,20,0}, flag=u}}, gmtoff={-7,0,0}}
, {1,0,0}))
@@ -46,11 +46,11 @@ next_datetime_test_() ->
Z1=BZ#zone{until={{2010,11,15},#tztime{}}}
, Z2=BZ#zone{until={{2010,11,5},#tztime{}}}
, Z3=BZ#zone{until={{2010,11,25},#tztime{}}}
, Zt1=BZ#zone{until={{2010,11,5},#tztime{time={5,0,0}, flag=u}}}
, Zt2=BZ#zone{until={{2010,11,5},#tztime{time={12,0,0}, flag=u}}}
, Zt3=BZ#zone{until={{2010,11,5},#tztime{time={17,0,0}, flag=u}}}
, Zy1=BZ#zone{until={{1978,11,5},#tztime{}}}
, Zy2=BZ#zone{until={{1979,11,5},#tztime{}}}
, Zy3=BZ#zone{until={{1980,11,5},#tztime{}}}