diff options
| author | apocelipes <[email protected]> | 2026-08-09 21:23:24 +0800 |
|---|---|---|
| committer | apocelipes <[email protected]> | 2026-08-09 21:23:24 +0800 |
| commit | 1193bed28ca75f8f1cc177292f196d9ae03ec598 (patch) | |
| tree | b959e4c4c0a950d6af2509cfe6866f10385c2f2c /tests/modules | |
| parent | 579b9f0ca6126d9d0570a9c76243d7ed142da3fd (diff) | |
fix: reorder matching
Diffstat (limited to 'tests/modules')
| -rwxr-xr-x | tests/modules/semver/test.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/modules/semver/test.lua b/tests/modules/semver/test.lua index e8cb26177..9ebd2e45c 100755 --- a/tests/modules/semver/test.lua +++ b/tests/modules/semver/test.lua @@ -42,7 +42,7 @@ function test_semver_select(t) , "^1.2.3" , {"^1.2.3", "1.2.3", "1.9.0"}) - _check_semver_select(t, {"v1.2.3+7", "version"} + _check_semver_select(t, {"1.2.3", "tag"} , "1.2.3" , {"v1.2.3+7"} , {"1.2.3"}) @@ -70,6 +70,11 @@ function test_semver_select(t) , nil , {"v1.2.3+7", "v1.2.3+8"}) + _check_semver_select(t, {"v1.2.3+7", "tag"} + , "1.2.3+7" + , {"1.2.3+8"} + , {"v1.2.3+7"}) + _check_semver_select(t, {"master", "branch"} , "master" , {"1.4.0", "1.5.0", "1.5.1"} |
