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
db37e675
Commit
db37e675
authored
10 years ago
by
Junegunn Choi
Browse files
Options
Downloads
Patches
Plain Diff
Skip failing tests on Ruby 1.8
parent
76a3ef8c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_fzf.rb
+2
-3
2 additions, 3 deletions
test/test_fzf.rb
with
2 additions
and
3 deletions
test/test_fzf.rb
+
2
−
3
View file @
db37e675
...
...
@@ -172,13 +172,12 @@ class TestFZF < MiniTest::Unit::TestCase
end
end
# FIXME Only on 1.9 or above
def
test_width
fzf
=
FZF
.
new
[]
assert_equal
5
,
fzf
.
width
(
'abcde'
)
assert_equal
4
,
fzf
.
width
(
'한글'
)
assert_equal
5
,
fzf
.
width
(
'한글.'
)
end
end
if
RUBY_VERSION
>=
'1.9'
def
test_trim
fzf
=
FZF
.
new
[]
...
...
@@ -191,7 +190,7 @@ class TestFZF < MiniTest::Unit::TestCase
assert_equal
[
'가나a'
,
6
],
fzf
.
trim
(
'가나ab라마바사.'
,
5
,
false
)
assert_equal
[
'가나ab'
,
5
],
fzf
.
trim
(
'가나ab라마바사.'
,
6
,
false
)
assert_equal
[
'가나ab'
,
5
],
fzf
.
trim
(
'가나ab라마바사.'
,
7
,
false
)
end
end
if
RUBY_VERSION
>=
'1.9'
def
test_format
fzf
=
FZF
.
new
[]
...
...
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