mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-09-29 05:39: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($/)
|
], `#{FZF} -foo --tiebreak=begin,length < #{tempname}`.split($/)
|
||||||
end
|
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
|
def test_tiebreak_end
|
||||||
writelines tempname, [
|
writelines tempname, [
|
||||||
'xoxxxxxxxx',
|
'xoxxxxxxxx',
|
||||||
|
Loading…
Reference in New Issue
Block a user