mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-29 16:23:57 +00:00
Add test case for 7e2c18a
This commit is contained in:
parent
7e2c18a1f6
commit
55828f389a
@ -509,7 +509,7 @@ class TestBash < TestBase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_dir_completion
|
def test_dir_completion
|
||||||
tmux.send_keys 'mkdir -p /tmp/fzf-test/d{1..100}', :Enter
|
tmux.send_keys 'mkdir -p /tmp/fzf-test/d{1..100}; touch /tmp/fzf-test/d55/xxx', :Enter
|
||||||
tmux.prepare
|
tmux.prepare
|
||||||
tmux.send_keys 'cd /tmp/fzf-test/**', :Tab
|
tmux.send_keys 'cd /tmp/fzf-test/**', :Tab
|
||||||
tmux.until { |lines| lines[-1].start_with? '>' }
|
tmux.until { |lines| lines[-1].start_with? '>' }
|
||||||
@ -520,6 +520,16 @@ class TestBash < TestBase
|
|||||||
tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/' }
|
tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/' }
|
||||||
tmux.send_keys :xx
|
tmux.send_keys :xx
|
||||||
tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/xx' }
|
tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/xx' }
|
||||||
|
|
||||||
|
# Should not match regular files
|
||||||
|
tmux.send_keys :Tab
|
||||||
|
tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/xx' }
|
||||||
|
|
||||||
|
# Fail back to plusdirs
|
||||||
|
tmux.send_keys :BSpace, :BSpace, :BSpace
|
||||||
|
tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55' }
|
||||||
|
tmux.send_keys :Tab
|
||||||
|
tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/' }
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_process_completion
|
def test_process_completion
|
||||||
|
Loading…
Reference in New Issue
Block a user