summaryrefslogtreecommitdiffstats
path: root/test/test_fzf.rb
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2013-11-15 21:49:00 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2013-11-15 21:49:00 +0900
commit6037e1e2174e2cd391d4fbbdb8f9abc5398091e9 (patch)
tree01deca4895ebd24a2fc8d60f331ed48c03951bfa /test/test_fzf.rb
parent43acf5c8a46ef21487f98693640e0a439a3ae2d8 (diff)
Ignore invalid UTF-8 sequences
Diffstat (limited to 'test/test_fzf.rb')
-rw-r--r--test/test_fzf.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_fzf.rb b/test/test_fzf.rb
index 2ea3f5a9..681db5fb 100644
--- a/test/test_fzf.rb
+++ b/test/test_fzf.rb
@@ -288,5 +288,10 @@ class TestFZF < MiniTest::Unit::TestCase
assert_equal NFD, nfd
end
end
+
+ def test_split
+ assert_equal ["a", "b", "c", "\xFF", "d", "e", "f"],
+ FZF::UConv.split("abc\xFFdef")
+ end
end