summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-02-03 02:14:14 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-02-03 02:14:14 +0900
commitfe83589ade42e1d6c24b792ec0fa303f07e953e1 (patch)
tree95ca35bcef1f6abdc6761bfd2f44bbecf7ebc2b3
parentfcf63c74f1de52e4b0038a50154ee1732ef84af5 (diff)
Add test case for --tiebreak=begin
-rw-r--r--test/test_go.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index f730f256..702aecc9 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -617,6 +617,17 @@ class TestGoFZF < TestBase
], `#{FZF} -foo --tiebreak=begin,length < #{tempname}`.split($/)
end
+ def test_tiebreak_begin_algo_v2
+ writelines tempname, [
+ 'baz foo bar',
+ 'foo bar baz',
+ ]
+ assert_equal [
+ 'foo bar baz',
+ 'baz foo bar',
+ ], `#{FZF} -fbar --tiebreak=begin --algo=v2 < #{tempname}`.split($/)
+ end
+
def test_tiebreak_end
writelines tempname, [
'xoxxxxxxxx',