Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Commits on Source (2)
import pystencils as ps import pystencils as ps
def test_version_string(): def test_version_string():
version = ps.__version__ version = ps.__version__
print(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)) test_version = sum(x * (100 ** i) for i, x in enumerate(numeric_version))
assert test_version >= 200 assert test_version >= 1
\ No newline at end of file