diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2013-11-15 21:49:00 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2013-11-15 21:49:00 +0900 |
commit | 6037e1e2174e2cd391d4fbbdb8f9abc5398091e9 (patch) | |
tree | 01deca4895ebd24a2fc8d60f331ed48c03951bfa /test/test_fzf.rb | |
parent | 43acf5c8a46ef21487f98693640e0a439a3ae2d8 (diff) |
Ignore invalid UTF-8 sequences
Diffstat (limited to 'test/test_fzf.rb')
-rw-r--r-- | test/test_fzf.rb | 5 |
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 |