Navigation Menu

Skip to content

Commit

Permalink
Add Groonga::Type::REGEXP for TokenRegexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Masafumi Yokoyama committed Apr 2, 2015
1 parent 03fe504 commit c6cb3e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ext/groonga/rb-grn-type.c
Expand Up @@ -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));
}
4 changes: 4 additions & 0 deletions test/test-type.rb
Expand Up @@ -156,5 +156,9 @@ def test_mecab
check_mecab_availability
assert_equal_type("TokenMecab", Groonga::Type::MECAB)
end

def test_regexp
assert_equal_type("TokenRegexp", Groonga::Type::REGEXP)
end
end
end

0 comments on commit c6cb3e9

Please sign in to comment.