Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng authored and oubiwann committed Jul 26, 2022
1 parent e62bb38 commit 70c03cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Erlang Version][erl-badge]][erl]
[![Downloads][hex downloads]][hex package]

*An ISO 8601 date formating and parsing library for Erlang*
*An ISO 8601 date formatting and parsing library for Erlang*

[![iso8601 project logo][logo]][logo-large]

Expand Down
2 changes: 1 addition & 1 deletion src/iso8601.app.src
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{application, iso8601, [
{description,"An ISO 8601 date formating and parsing library for Erlang"},
{description,"An ISO 8601 date formatting and parsing library for Erlang"},
{vsn, "1.3.3"},
{registered, []},
{modules, [
Expand Down
4 changes: 2 additions & 2 deletions test/iso8601_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ parse_ordinal_test_() ->
{"parses YYYY_DDDTHHMMSS, March 1 in a non-leap century", ?_assertMatch({{1900,3,1}, {4,5,6}}, F("1900-060T040506.50")) },
{"fails to parse ordinal date with 0 days", ?_assertError(badarg, F("2016-000T040506.50"))},
{"fails to parse ordinal date with too many days in a leap year", ?_assertError(badarg, F("2016-367T040506.50"))},
{"parses ordinal date wth 366 days in a leap year", ?_assertMatch({{2016,12,31}, {4,5,6}}, F("2016-366T040506.50"))},
{"parses ordinal date with 366 days in a leap year", ?_assertMatch({{2016,12,31}, {4,5,6}}, F("2016-366T040506.50"))},
{"fails to parse ordinal date with too many days in a non-leap year", ?_assertError(badarg, F("2015-366T040506.50"))}
].

Expand All @@ -180,7 +180,7 @@ parse_ordinal_exact_test_() ->
{"parses YYYY_DDDTHHMMSS, March 1 in a non-leap century", ?_assertMatch({{1900,3,1}, {4,5,6.50}}, F("1900-060T040506.50")) },
{"fails to parse ordinal date with 0 days", ?_assertError(badarg, F("2016-000T040506.50"))},
{"fails to parse ordinal date with too many days in a leap year", ?_assertError(badarg, F("2016-367T040506.50"))},
{"parses ordinal date wth 366 days in a leap year", ?_assertMatch({{2016,12,31}, {4,5,6.50}}, F("2016-366T040506.50"))},
{"parses ordinal date with 366 days in a leap year", ?_assertMatch({{2016,12,31}, {4,5,6.50}}, F("2016-366T040506.50"))},
{"fails to parse ordinal date with too many days in a non-leap year", ?_assertError(badarg, F("2015-366T040506.50"))}
].

Expand Down

0 comments on commit 70c03cf

Please sign in to comment.