fish-shell/tests/checks/complete_directories.fish
Fabian Homborg b7b09add95 Revert complete_directories change
Turns out my test dir wasn't as clean as it should have been.
2020-03-17 21:45:49 +01:00

27 lines
783 B
Fish

#RUN: %fish %s
cd ..
mkdir -p test/data/abc
mkdir -p test/data/abcd
touch test/data/af
touch test/data/abcdf
mkdir -p test/data/xy
mkdir -p test/data/xyz
touch test/data/xyf
touch test/data/xyzf
__fish_complete_directories test/z
# No match - no output!
__fish_complete_directories test/d
#CHECK: test/data/ Directory
#CHECK: test/buildroot/ Directory
#CHECK: test/fish_expand_test/ Directory
__fish_complete_directories test/data
#CHECK: test/data/ Directory
__fish_complete_directories test/data/
#CHECK: test/data/abc/ Directory
#CHECK: test/data/abcd/ Directory
#CHECK: test/data/fish/ Directory
#CHECK: test/data/xy/ Directory
#CHECK: test/data/xyz/ Directory
__fish_complete_directories test/data/abc 'abc dirs'
#CHECK: test/data/abc/ abc dirs
#CHECK: test/data/abcd/ abc dirs