Kouhei Sutou
null+****@clear*****
Wed Dec 3 23:36:55 JST 2014
Kouhei Sutou 2014-12-03 23:36:55 +0900 (Wed, 03 Dec 2014) New Revision: 32287b7f436a1c4614edbf759ff882c80d4d5b05 https://github.com/ranguba/rroonga/commit/32287b7f436a1c4614edbf759ff882c80d4d5b05 Message: test: follow inspect result of expression change Modified files: test/test-expression.rb Modified: test/test-expression.rb (+11 -11) =================================================================== --- test/test-expression.rb 2014-12-03 22:33:45 +0900 (8df23ba) +++ test/test-expression.rb 2014-12-03 23:36:55 +0900 (7cb89a2) @@ -299,48 +299,48 @@ class ExpressionTest < Test::Unit::TestCase class DefaultOperatorTest < self def test_nil - assert_equal("AND", parse(nil)) + assert_equal("and", parse(nil)) end def test_name - assert_equal("OR", parse("or")) + assert_equal("or", parse("or")) end def test_name_symbol - assert_equal("OR", parse(:or)) + assert_equal("or", parse(:or)) end def test_symbol - assert_equal("OR", parse("||")) + assert_equal("or", parse("||")) end def test_integer - assert_equal("ADJUST", parse(Groonga::Operator::ADJUST)) + assert_equal("adjust", parse(Groonga::Operator::ADJUST)) end private def parse(default_operator) @expression.parse("_id:1 _id:2", :default_operator => default_operator) - operator =****@expre*****[/\d([a-zA-Z_-]+)}/, 1] + operator =****@expre*****[/6:<([a-zA-Z_-]+)/, 1] operator end end class DefaultModeTest < self def test_nil - assert_equal("MATCH", parse(nil)) + assert_equal("match", parse(nil)) end def test_name - assert_equal("EQUAL", parse("equal")) + assert_equal("equal", parse("equal")) end def test_symbol - assert_equal("EQUAL", parse(:equal)) + assert_equal("equal", parse(:equal)) end def test_integer - assert_equal("EQUAL", parse(Groonga::Operator::EQUAL)) + assert_equal("equal", parse(Groonga::Operator::EQUAL)) end private @@ -348,7 +348,7 @@ class ExpressionTest < Test::Unit::TestCase @expression.parse("query", :default_column => "_id", :default_mode => default_mode) - operator =****@expre*****[/\d([a-zA-Z_-]+)}/, 1] + operator =****@expre*****[/2:<([a-zA-Z_-]+)/, 1] operator end end -------------- next part -------------- HTML����������������������������... 下載