Masafumi Yokoyama
null+****@clear*****
Thu Apr 2 17:47:11 JST 2015
Masafumi Yokoyama 2015-04-02 17:47:11 +0900 (Thu, 02 Apr 2015) New Revision: c6cb3e9c795544f0725c4901cff77b8bc6001725 https://github.com/ranguba/rroonga/commit/c6cb3e9c795544f0725c4901cff77b8bc6001725 Merged f029e39: Merge pull request #76 from ranguba/add-token-regexp-type Message: Add Groonga::Type::REGEXP for TokenRegexp Modified files: ext/groonga/rb-grn-type.c test/test-type.rb Modified: ext/groonga/rb-grn-type.c (+1 -0) =================================================================== --- ext/groonga/rb-grn-type.c 2015-04-02 17:06:52 +0900 (30d2c98) +++ ext/groonga/rb-grn-type.c 2015-04-02 17:47:11 +0900 (bb755b0) @@ -278,4 +278,5 @@ rb_grn_init_type (VALUE mGrn) rb_define_const(rb_cGrnType, "BIGRAM", INT2NUM(GRN_DB_BIGRAM)); rb_define_const(rb_cGrnType, "TRIGRAM", INT2NUM(GRN_DB_TRIGRAM)); rb_define_const(rb_cGrnType, "MECAB", INT2NUM(GRN_DB_MECAB)); + rb_define_const(rb_cGrnType, "REGEXP", INT2NUM(GRN_OP_REGEXP)); } Modified: test/test-type.rb (+4 -0) =================================================================== --- test/test-type.rb 2015-04-02 17:06:52 +0900 (9defdbf) +++ test/test-type.rb 2015-04-02 17:47:11 +0900 (408abb8) @@ -156,5 +156,9 @@ class TypeTest < Test::Unit::TestCase check_mecab_availability assert_equal_type("TokenMecab", Groonga::Type::MECAB) end + + def test_regexp + assert_equal_type("TokenRegexp", Groonga::Type::REGEXP) + end end end -------------- next part -------------- HTML����������������������������... 下載