1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 15:23:53 -05:00

Fix resolution of a name that's a prefix of another name (#2521)

This commit is contained in:
native-api
2022-11-10 04:46:14 +03:00
committed by GitHub
parent 904fe964b0
commit ed1083ec27
2 changed files with 21 additions and 0 deletions

View File

@@ -64,6 +64,21 @@ pyenv: no known versions match the prefix \`3.8'
!
}
@test "complete name resolves to itself" {
create_executable pyenv-versions <<!
#!$BASH
echo foo
echo foo.bar
!
run pyenv-latest foo
assert_success
assert_output <<!
foo
!
}
@test "sort CPython" {
create_executable pyenv-versions <<!
#!$BASH