m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Fix incorrect ordering of --tiebreak=chunk

This commit is contained in:
Junegunn Choi
2022-08-03 22:18:26 +09:00
parent f7e7259910
commit 38259d0382
5 changed files with 37 additions and 23 deletions

View File

@@ -756,7 +756,7 @@ class TestGoFZF < TestBase
def test_tiebreak_chunk
writelines(tempname, [
'1 foobarbaz baz',
'1 foobarbaz ba',
'2 foobar baz',
'3 foo barbaz'
])
@@ -764,8 +764,14 @@ class TestGoFZF < TestBase
assert_equal [
'3 foo barbaz',
'2 foobar baz',
'1 foobarbaz baz'
'1 foobarbaz ba'
], `#{FZF} -fo --tiebreak=chunk < #{tempname}`.lines(chomp: true)
assert_equal [
'1 foobarbaz ba',
'2 foobar baz',
'3 foo barbaz'
], `#{FZF} -fba --tiebreak=chunk < #{tempname}`.lines(chomp: true)
end
def test_invalid_cache