Skip to content

Commit

Permalink
Add caret compiler version tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtzmn committed Jun 30, 2022
1 parent ea0482c commit 3a6438a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyteal/pragma/pragma_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def test_convert_pep440_compiler_version(compiler_version, expected):
("0.13.0", "<0.8.0 || >=0.12.0", False),
("0.12.0", "0.12.0-rc1", False),
("0.1.0", "<0.2.0", False),
("1.2.3", "^1.2.3", False),
("1.5.0", "^1.2.3", False),
("1.2.3b9", "^1.2.3b4", False),
("0.1.0a1", "<0.1.0a2", False),
("0.1.0-rc1", "<0.1.0-rc2", False),
("0.1.0.dev1", "<0.1.0.dev2", False),
Expand All @@ -57,6 +60,7 @@ def test_convert_pep440_compiler_version(compiler_version, expected):
("0.13.0", "0.13.1", True),
("1.2.3a2", "<0.8.0 || >=0.12.0", True),
("0.1.0a1", "<0.2.0", True),
("2.0.0", "^1.2.3", True),
("0.4.0b10", "<0.5.0 || >=1.0.0a9.dev10", True),
("0.4.9a10.dev2.post3", "<0.5.0 || >=1.0.0a9.post1.dev2", True),
],
Expand Down

0 comments on commit 3a6438a

Please sign in to comment.