Kouhei Sutou
null+****@clear*****
Thu Nov 6 15:22:19 JST 2014
Kouhei Sutou 2014-11-06 15:22:19 +0900 (Thu, 06 Nov 2014) New Revision: 3fcdd784916770ddf988569de2f69f7fc26b933a https://github.com/ranguba/rroonga/commit/3fcdd784916770ddf988569de2f69f7fc26b933a Message: test: group token filters tests Modified files: test/test-double-array-trie.rb test/test-hash.rb test/test-patricia-trie.rb Modified: test/test-double-array-trie.rb (+3 -1) =================================================================== --- test/test-double-array-trie.rb 2014-11-06 12:47:06 +0900 (d052c71) +++ test/test-double-array-trie.rb 2014-11-06 15:22:19 +0900 (9926af2) @@ -55,7 +55,8 @@ class DoubleArrayTrieTest < Test::Unit::TestCase trie.default_tokenizer) end - def test_token_filters + class TokenFiltersTest < self + def test_accessor context.register_plugin("token_filters/stop_word") trie = Groonga::DoubleArrayTrie.create assert_equal([], trie.token_filters) @@ -63,6 +64,7 @@ class DoubleArrayTrieTest < Test::Unit::TestCase assert_equal([context["TokenFilterStopWord"]], trie.token_filters) end + end def test_search users = Groonga::Array.create(:name => "Users") Modified: test/test-hash.rb (+3 -1) =================================================================== --- test/test-hash.rb 2014-11-06 12:47:06 +0900 (51db936) +++ test/test-hash.rb 2014-11-06 15:22:19 +0900 (0cfe10b) @@ -195,7 +195,8 @@ class HashTest < Test::Unit::TestCase hash.default_tokenizer) end - def test_token_filters + class TokenFiltersTest < self + def test_accessor context.register_plugin("token_filters/stop_word") hash = Groonga::Hash.create assert_equal([], hash.token_filters) @@ -203,6 +204,7 @@ class HashTest < Test::Unit::TestCase assert_equal([context["TokenFilterStopWord"]], hash.token_filters) end + end def test_normalizer hash = Groonga::Hash.create Modified: test/test-patricia-trie.rb (+3 -1) =================================================================== --- test/test-patricia-trie.rb 2014-11-06 12:47:06 +0900 (f800b9b) +++ test/test-patricia-trie.rb 2014-11-06 15:22:19 +0900 (3808812) @@ -55,7 +55,8 @@ class PatriciaTrieTest < Test::Unit::TestCase trie.default_tokenizer) end - def test_token_filters + class TokenFiltersTest < self + def test_accessor context.register_plugin("token_filters/stop_word") trie = Groonga::PatriciaTrie.create assert_equal([], trie.token_filters) @@ -63,6 +64,7 @@ class PatriciaTrieTest < Test::Unit::TestCase assert_equal([context["TokenFilterStopWord"]], trie.token_filters) end + end def test_normalizer trie = Groonga::PatriciaTrie.create -------------- next part -------------- HTML����������������������������...下载