summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-08-03 22:18:26 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-08-03 22:18:26 +0900
commit38259d0382eba18b66c03d62e35089ec10c24698 (patch)
treeecd12308c7bfe674d701480b2a1512acb93a5ca7 /test
parentf7e7259910393ea3eeeb3ac78913e881d4a86691 (diff)
Fix incorrect ordering of `--tiebreak=chunk`
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index aa549ad3..6371e0e2 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -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