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

Merge branch 'holzer-master-patch-17736' into 'master'

Fix: Version string test case

See merge request !298
parents 354fede8 6c273a14
1 merge request!298Fix: Version string test case
Pipeline #41143 passed with stages
in 25 minutes and 22 seconds
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