summaryrefslogtreecommitdiff
path: root/test/test_semver_utils.vader
diff options
context:
space:
mode:
authorTomasz N <przepompownia@users.noreply.github.com>2019-03-12 18:49:48 +0100
committerw0rp <w0rp@users.noreply.github.com>2019-03-12 17:49:48 +0000
commit5f03bae41ca1fc63a9e607bed99c277249e9774e (patch)
tree158be9ccbf28a2f95e236887e765a556899b2cfa /test/test_semver_utils.vader
parent365ffae6c4668f7aa89cc181e514bb6b2245c9a0 (diff)
downloadale-5f03bae41ca1fc63a9e607bed99c277249e9774e.zip
Fix parsing the third part of version string (#2355)
* Fix parsing the third part of version string * Add test * Test: fix checking cached version
Diffstat (limited to 'test/test_semver_utils.vader')
-rw-r--r--test/test_semver_utils.vader3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_semver_utils.vader b/test/test_semver_utils.vader
index cd0381dd..62483505 100644
--- a/test/test_semver_utils.vader
+++ b/test/test_semver_utils.vader
@@ -15,7 +15,8 @@ Execute(GetVersion should return an empty list when no vesrion can be found):
Execute(GetVersion should cache the version):
AssertEqual [], ale#semver#GetVersion('dummy', [])
AssertEqual [3, 4, 7], ale#semver#GetVersion('dummy', ['Version 3.4.7'])
- AssertEqual [3, 4, 7], ale#semver#GetVersion('dummy', [])
+ AssertEqual [3, 4, 17], ale#semver#GetVersion('dummy', ['Version 3.4.17'])
+ AssertEqual [3, 4, 17], ale#semver#GetVersion('dummy', [])
Execute(GetVersion should tolerate missing patch numbers):
" This goes against the semver spec, but we handle it anyway.