mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 07:13:53 -05:00
reads only the first word from file
This commit is contained in:
@@ -38,16 +38,16 @@ setup() {
|
||||
@test "reads only the first word from file" {
|
||||
cat > my-version <<<"3.3.5 2.7.6 hi"
|
||||
run pyenv-version-file-read my-version
|
||||
assert_success "3.3.5:2.7.6:hi"
|
||||
assert_success "3.3.5"
|
||||
}
|
||||
|
||||
@test "loads only the first line in file" {
|
||||
@test "loads *not* only the first line in file" {
|
||||
cat > my-version <<IN
|
||||
2.7.6 one
|
||||
3.3.5 two
|
||||
IN
|
||||
run pyenv-version-file-read my-version
|
||||
assert_success "2.7.6:one:3.3.5:two"
|
||||
assert_success "2.7.6:3.3.5"
|
||||
}
|
||||
|
||||
@test "ignores leading blank lines" {
|
||||
|
||||
Reference in New Issue
Block a user