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

Add exact-match and invert-exact-match match types

This commit is contained in:
Junegunn Choi
2013-11-16 00:58:46 +09:00
parent 76c7f4f9c0
commit e4a49dbb2a
3 changed files with 35 additions and 12 deletions

View File

@@ -194,6 +194,14 @@ class TestFZF < MiniTest::Unit::TestCase
# ! + f
assert_equal [["juicy", [[4, 5]]]], match.call('y !l', '')
# '
assert_equal %w[juiceful juiceless juicily],
match.call('il', '').map { |e| e.first }
assert_equal %w[juicily],
match.call("'il", '').map { |e| e.first }
assert_equal (list - %w[juicily]).sort,
match.call("!'il", '').map { |e| e.first }.sort
end
assert !matcher.caches.empty?
end