Kouhei Sutou
null+****@clear*****
Thu Apr 9 20:09:33 JST 2015
Kouhei Sutou 2015-04-09 20:09:33 +0900 (Thu, 09 Apr 2015) New Revision: d94c81be6ebced8a2a745607cf6525523d14ad76 https://github.com/groonga/groonga/commit/d94c81be6ebced8a2a745607cf6525523d14ad76 Message: test: follow estimate algorithm change Modified files: test/query_optimizer/suite/test_estimate_size.rb Modified: test/query_optimizer/suite/test_estimate_size.rb (+10 -10) =================================================================== --- test/query_optimizer/suite/test_estimate_size.rb 2015-04-09 19:36:12 +0900 (9068c29) +++ test/query_optimizer/suite/test_estimate_size.rb 2015-04-09 20:09:33 +0900 (cad86b2) @@ -32,14 +32,14 @@ class TestEstimateSize < QueryOptimizerTestCase end def test_no_record - assert_equal(0, estimate_size("message @ 'Groonga'")) + assert_equal(0, estimate_size("message @ 'roonga'")) end def test_have_record @logs.add(:message => "Groonga is fast") @logs.add(:message => "Rroonga is fast") @logs.add(:message => "Mroonga is fast") - assert_equal(6, estimate_size("message @ 'Groonga'")) + assert_equal(6, 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 @ 'Groonga' && " + + assert_equal(6, 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 @ 'Groonga' && " + + assert_equal(5, estimate_size("message @ 'roonga' && " + "timestamp < '2015-02-19 02:19:00' && " + "type == 1")) end @@ -346,7 +346,7 @@ class TestEstimateSize < QueryOptimizerTestCase @logs.add(:timestamp => "2015-02-19 02:19:00") @logs.add(:timestamp => "2015-02-19 02:19:00") - assert_equal(1, estimate_size("message @ 'Groonga' &! " + + assert_equal(1, estimate_size("message @ 'roonga' &! " + "timestamp < '2015-02-19 02:19:00'")) end @@ -363,7 +363,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(3, estimate_size("message @ 'Groonga' &! " + + assert_equal(3, estimate_size("message @ 'roonga' &! " + "timestamp < '2015-02-19 02:19:00' &! " + "type == 1")) end @@ -411,7 +411,7 @@ class TestEstimateSize < QueryOptimizerTestCase @logs.add(:timestamp => "2015-02-19 02:19:00") @logs.add(:timestamp => "2015-02-19 02:19:00") - assert_equal(8, estimate_size("message @ 'Groonga' || " + + assert_equal(8, estimate_size("message @ 'roonga' || " + "timestamp < '2015-02-19 02:19:00'")) end @@ -428,7 +428,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(8, estimate_size("message @ 'Groonga' || " + + assert_equal(8, estimate_size("message @ 'roonga' || " + "timestamp < '2015-02-19 02:19:00' || " + "type == 1")) end @@ -479,11 +479,11 @@ class TestEstimateSize < QueryOptimizerTestCase @logs.add(:timestamp => "2015-02-19 02:19:00", :type => 3) assert_equal(6, estimate_size("(" + - "message @ 'Groonga' && " + + "message @ 'roonga' && " + "timestamp < '2015-02-19 02:19:00'" + ") || " + "(" + - "message @ 'Groonga' && " + + "message @ 'roonga' && " + "timestamp < '2015-02-19 02:19:00' && " + "type == 1" + ")")) -------------- next part -------------- HTML����������������������������... 다운로드