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

Fix Unicode case handling (#186)

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

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