Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fzf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
fzf
Commits
55828f38
Commit
55828f38
authored
10 years ago
by
Junegunn Choi
Browse files
Options
Downloads
Patches
Plain Diff
Add test case for
7e2c18a1
parent
7e2c18a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_go.rb
+11
-1
11 additions, 1 deletion
test/test_go.rb
with
11 additions
and
1 deletion
test/test_go.rb
+
11
−
1
View file @
55828f38
...
...
@@ -509,7 +509,7 @@ class TestBash < TestBase
end
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
.
send_keys
'cd /tmp/fzf-test/**'
,
:Tab
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
.
send_keys
: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
def
test_process_completion
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment