Kouhei Sutou
null+****@clear*****
Fri Nov 13 11:56:04 JST 2015
Kouhei Sutou 2015-11-13 11:56:04 +0900 (Fri, 13 Nov 2015) New Revision: e3dd8bd8a55e811dca02a79d0036f7d5fb83de36 https://github.com/groonga/groonga/commit/e3dd8bd8a55e811dca02a79d0036f7d5fb83de36 Message: test: follow estimation algorithm change Modified files: test/mruby/suite/query_optimizer/test_estimate_size.rb Modified: test/mruby/suite/query_optimizer/test_estimate_size.rb (+4 -4) =================================================================== --- test/mruby/suite/query_optimizer/test_estimate_size.rb 2015-11-13 11:34:34 +0900 (3c1d0e1) +++ test/mruby/suite/query_optimizer/test_estimate_size.rb 2015-11-13 11:56:04 +0900 (99cb0bf) @@ -39,7 +39,7 @@ class TestEstimateSize < QueryOptimizerTestCase @logs.add(:message => "Groonga is fast") @logs.add(:message => "Rroonga is fast") @logs.add(:message => "Mroonga is fast") - assert_equal(6, estimate_size("message @ 'roonga'")) + assert_equal(3, estimate_size("message @ 'roonga'")) end end @@ -281,7 +281,7 @@ class TestEstimateSize < QueryOptimizerTestCase @logs.add(:timestamp => "2015-02-19 02:19:00") @logs.add(:timestamp => "2015-02-19 02:19:00") - assert_equal(6, estimate_size("message @ 'roonga' && " + + assert_equal(3, estimate_size("message @ 'roonga' && " + "timestamp < '2015-02-19 02:19:00'")) end @@ -298,7 +298,7 @@ class TestEstimateSize < QueryOptimizerTestCase @logs.add(:timestamp => "2015-02-19 02:19:00", :type => 3) @logs.add(:timestamp => "2015-02-19 02:19:00", :type => 3) - assert_equal(5, estimate_size("message @ 'roonga' && " + + assert_equal(3, estimate_size("message @ 'roonga' && " + "timestamp < '2015-02-19 02:19:00' && " + "type == 1")) end @@ -478,7 +478,7 @@ class TestEstimateSize < QueryOptimizerTestCase @logs.add(:timestamp => "2015-02-19 02:19:00", :type => 3) @logs.add(:timestamp => "2015-02-19 02:19:00", :type => 3) - assert_equal(6, estimate_size("(" + + assert_equal(3, estimate_size("(" + "message @ 'roonga' && " + "timestamp < '2015-02-19 02:19:00'" + ") || " + -------------- next part -------------- HTML����������������������������...Download