Skip to content
Snippets Groups Projects
Commit 622e2f7b authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: Test local identifier

parent ef6b1258
No related branches found
No related tags found
No related merge requests found
...@@ -18,12 +18,17 @@ import fsl.version as fslversion ...@@ -18,12 +18,17 @@ import fsl.version as fslversion
def test_parseVersionString(): def test_parseVersionString():
tests = [ tests = [
('0.0.0', [0, 0, 0]), ('0.0.0', [0, 0, 0]),
('0.0.10', [0, 0, 10]), ('0.0.10', [0, 0, 10]),
('10.0.10', [10, 0, 10]), ('10.0.10', [10, 0, 10]),
('10.10.10', [10, 10, 10]), ('10.10.10', [10, 10, 10]),
('10.10.10.dev', [10, 10, 10]), ('10.10.10.dev', [10, 10, 10]),
('10.10.10.dev0', [10, 10, 10]), ('10.10.10.dev0', [10, 10, 10]),
('10.10.10.dev0', [10, 10, 10]),
('10.10.10+build1', [10, 10, 10]),
('10.10.10+buildB', [10, 10, 10]),
('10.10.10.dev0+build4', [10, 10, 10]),
# old-style hotfix release numbers # old-style hotfix release numbers
('10.10.10a', [10, 10, 10]), ('10.10.10a', [10, 10, 10]),
...@@ -45,6 +50,7 @@ def test_parseVersionString_bad(): ...@@ -45,6 +50,7 @@ def test_parseVersionString_bad():
'a.5.5', 'a.5.5',
'5.5.a', '5.5.a',
'5.5.a', '5.5.a',
'5.5+build0',
] ]
for test in tests: for test in tests:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment