Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
622e2f7b
Commit
622e2f7b
authored
6 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TEST: Test local identifier
parent
ef6b1258
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_version.py
+12
-6
12 additions, 6 deletions
tests/test_version.py
with
12 additions
and
6 deletions
tests/test_version.py
+
12
−
6
View file @
622e2f7b
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment