summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/search_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/lib/redmine/search_test.rb')
-rw-r--r--test/unit/lib/redmine/search_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/search_test.rb b/test/unit/lib/redmine/search_test.rb
index e2944b4ac..219f40cfd 100644
--- a/test/unit/lib/redmine/search_test.rb
+++ b/test/unit/lib/redmine/search_test.rb
@@ -24,4 +24,10 @@ class Redmine::Search::Tokenize < ActiveSupport::TestCase
value = "hello \"bye bye\""
assert_equal ["hello", "bye bye"], Redmine::Search::Tokenizer.new(value).tokens
end
+
+ def test_tokenize_should_consider_ideographic_space_as_separator
+ # U+3000 is an ideographic space (" ")
+ value = "全角\u3000スペース"
+ assert_equal %w[全角 スペース], Redmine::Search::Tokenizer.new(value).tokens
+ end
end