mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-10 13:32:34 +08:00
Fix parsing the third part of version string (#2355)
* Fix parsing the third part of version string * Add test * Test: fix checking cached version
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user