mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 03:19:01 +00:00
Add test case for --tiebreak=begin
This commit is contained in:
parent
fcf63c74f1
commit
fe83589ade
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user