Skip to content
Permalink
Browse files

Mayan Long Count tests

  • Loading branch information...
wtty-fool committed Apr 21, 2018
1 parent d900ed2 commit 8493dd7e8421e539f45e65870267569a6b153ce3
Showing with 15 additions and 0 deletions.
  1. +15 −0 tests/test_maya.py
@@ -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",
[

0 comments on commit 8493dd7

Please sign in to comment.
You can’t perform that action at this time.