Skip to content
Snippets Groups Projects
Commit 6c273a14 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix: Version string test case

parent 354fede8
1 merge request!298Fix: Version string test case
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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment