From f092e4038fd1344bcd0a7c11f7ab7355734f7275 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 28 Jul 2020 13:06:57 +0900 Subject: Smart match of accented characters Fix #1618 --- test/test_go.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/test_go.rb b/test/test_go.rb index 75e84ec4..2afb5b81 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1805,6 +1805,14 @@ class TestGoFZF < TestBase tmux.until { |lines| lines.item_count == 1 } tmux.until { |lines| assert_match %r{121.*121/1000}, lines[1] } end + + def test_normalized_match + echoes = '(echo a; echo á; echo A; echo Á;)' + assert_equal %w[a á A Á], `#{echoes} | #{FZF} -f a`.lines.map(&:chomp) + assert_equal %w[á Á], `#{echoes} | #{FZF} -f á`.lines.map(&:chomp) + assert_equal %w[A Á], `#{echoes} | #{FZF} -f A`.lines.map(&:chomp) + assert_equal %w[Á], `#{echoes} | #{FZF} -f Á`.lines.map(&:chomp) + end end module TestShell -- cgit v1.2.3