From db37e675756ef51b623326d54c29a86e98781544 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 1 Nov 2014 14:52:29 +0900 Subject: [PATCH] Skip failing tests on Ruby 1.8 --- test/test_fzf.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_fzf.rb b/test/test_fzf.rb index 6fbd426..f61fb34 100644 --- a/test/test_fzf.rb +++ b/test/test_fzf.rb @@ -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 []