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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user