Navigation Menu

Skip to content

Commit

Permalink
Bind new procedure types
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 14, 2015
1 parent 0aa438a commit 9724244
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/groonga/rb-grn-procedure-type.c
Expand Up @@ -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));
}
5 changes: 5 additions & 0 deletions test/test-procedure.rb
Expand Up @@ -40,5 +40,10 @@ def test_tokenizer
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

0 comments on commit 9724244

Please sign in to comment.