Skip to content

Commit

Permalink
Mayan Long Count tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kubasobon committed Sep 1, 2019
1 parent d900ed2 commit 8493dd7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_maya.py
Expand Up @@ -30,6 +30,21 @@ def test_iso8601(string, expected):
assert r == d.iso8601()


@pytest.mark.parametrize(
"string,expected",
[
('January 1, 1970', "12.17.16.7.5"),
('December 21, 2012', "13.0.0.0.0"),
('March 4, 1900', "12.14.5.10.0"),
],
)
def test_long_count(string, expected):
r = maya.parse(string).long_count()
d = maya.MayaDT.from_long_count(r)
assert r == expected
assert r == d.long_count()


@pytest.mark.parametrize(
"string,expected",
[
Expand Down

0 comments on commit 8493dd7

Please sign in to comment.