Skip to content
Snippets Groups Projects

Fix: Version string test case

Merged Markus Holzer requested to merge holzer-master-patch-17736 into master
Compare and
1 file
+ 3
2
Preferences
Compare changes
import pystencils as ps
def test_version_string():
version = ps.__version__
print(version)
numeric_version = [int(x, 10) for x in version.split('.')[0:2]]
numeric_version = [int(x, 10) for x in version.split('.')[0:1]]
test_version = sum(x * (100 ** i) for i, x in enumerate(numeric_version))
assert test_version >= 200
\ No newline at end of file
assert test_version >= 1