summaryrefslogtreecommitdiffstats
path: root/test/test_go.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_go.rb')
-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',