Skip to content

Commit

Permalink
Test for (the lack of) leap second handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlouis committed Oct 22, 2010
1 parent 30356f8 commit 1e3c93d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/inet_time_tests.erl
Expand Up @@ -37,6 +37,8 @@ parse_test() ->
inet_time:parse("1984-02-29T23:20:50.52+8:0"),
{error, {invalid_date,{{1984,2,30},{23,20,50,52},{'+',8,0}}}} =
inet_time:parse("1984-02-30T23:20:50.52+8:0"),
{error, {no_leap_second_handling, {{2005,12,31}, {23,59,60,0},'Z'}}} =
inet_time:parse("2005-12-31T23:59:60Z"),
{ok,{{1753,9,7},{1,0,0,0},'Z'}} =
inet_time:parse("1753-9-7T01:00:00Z"),
done.
Expand Down

0 comments on commit 1e3c93d

Please sign in to comment.