From 5c25984ea01677eb759501a5cff3fa63d2d460d8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 14 Apr 2015 21:45:37 +0900 Subject: Fix Unicode case handling (#186) --- test/test_go.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/test_go.rb b/test/test_go.rb index 94093ff1..a4b19700 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -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 -- cgit v1.2.3