Fix Unicode case handling (#186)

This commit is contained in:
Junegunn Choi committed 2015-04-14 21:45:37 +09:00
1 parent 319d6ced80
commit 5c25984ea0
6 files changed
+50 -17

No files matched your search

+7
View File
@@ -470,6 +470,13 @@ class TestGoFZF < TestBase
tmux.send_keys :Enter
assert_equal ['111', '11'], readonce.split($/)
end
def test_unicode_case
assert_equal %w[СТРОКА2 Строка4],
`printf "строКА1\\nСТРОКА2\\nстрока3\\nСтрока4" | fzf -fС`.split($/)
assert_equal %w[строКА1 СТРОКА2 строка3 Строка4],
`printf "строКА1\\nСТРОКА2\\nстрока3\\nСтрока4" | fzf -fс`.split($/)
end
end
module TestShell