Kouhei Sutou
null+****@clear*****
Tue Apr 14 15:23:54 JST 2015
Kouhei Sutou 2015-04-14 15:23:54 +0900 (Tue, 14 Apr 2015) New Revision: 97242446597c61a941f462f1487448fce17f2d3f https://github.com/ranguba/rroonga/commit/97242446597c61a941f462f1487448fce17f2d3f Message: Bind new procedure types Modified files: ext/groonga/rb-grn-procedure-type.c test/test-procedure.rb Modified: ext/groonga/rb-grn-procedure-type.c (+4 -0) =================================================================== --- ext/groonga/rb-grn-procedure-type.c 2015-04-14 15:20:10 +0900 (992f843) +++ ext/groonga/rb-grn-procedure-type.c 2015-04-14 15:23:54 +0900 (b0ea94b) @@ -37,4 +37,8 @@ rb_grn_init_procedure_type (VALUE mGrn) "HOOK", INT2NUM(GRN_PROC_HOOK)); rb_define_const(rb_mGrnProcedureType, "NORMALIZER", INT2NUM(GRN_PROC_NORMALIZER)); + rb_define_const(rb_mGrnProcedureType, + "TOKEN_FILTER", INT2NUM(GRN_PROC_TOKEN_FILTER)); + rb_define_const(rb_mGrnProcedureType, + "SCORER", INT2NUM(GRN_PROC_SCORER)); } Modified: test/test-procedure.rb (+5 -0) =================================================================== --- test/test-procedure.rb 2015-04-14 15:20:10 +0900 (972d8af) +++ test/test-procedure.rb 2015-04-14 15:23:54 +0900 (56cf1c5) @@ -40,5 +40,10 @@ class ProcedureTest < Test::Unit::TestCase tokenizer = Groonga["TokenBigram"] assert_equal(Groonga::ProcedureType::TOKENIZER, tokenizer.type) end + + def test_scorer + scorer = Groonga["scorer_tf_idf"] + assert_equal(Groonga::ProcedureType::SCORER, scorer.type) + end end end -------------- next part -------------- HTML����������������������������...Download