summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-11-18 16:18:11 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-11-18 20:16:43 +0900
commit1bebd6f4f5fac7c98ad01696fd819c3c82e41ec6 (patch)
tree93e6f1e4c1528fc2cd8f1035b82555fd02978c88 /test
parent3da63f394d016b6ad1861a022ea60b597d6ac030 (diff)
downloadfzf-1bebd6f4f5fac7c98ad01696fd819c3c82e41ec6.tar.gz
Fix panic on inverse match query with `--tiebreak=chunk`
Fix #3055
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 41767fce..b7ae1511 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -779,6 +779,10 @@ class TestGoFZF < TestBase
'2 foobar baz',
'3 foo barbaz'
], `#{FZF} -fba --tiebreak=chunk < #{tempname}`.lines(chomp: true)
+
+ assert_equal [
+ '3 foo barbaz'
+ ], `#{FZF} -f'!foobar' --tiebreak=chunk < #{tempname}`.lines(chomp: true)
end
def test_invalid_cache