Add test case for --tiebreak=begin

This commit is contained in:
Junegunn Choi 2017-02-03 02:14:14 +09:00
parent fcf63c74f1
commit fe83589ade
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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',