Kouhei Sutou
null+****@clear*****
Thu Feb 20 15:20:18 JST 2014
Kouhei Sutou 2014-02-20 15:20:18 +0900 (Thu, 20 Feb 2014) New Revision: d5019c5bd881965ed70ea45a731486a31ab9e7e2 https://github.com/groonga/groonga/commit/d5019c5bd881965ed70ea45a731486a31ab9e7e2 Message: test adjuster: split a test case It is the case for result record ID is different from the original record ID. Copied files: test/command/suite/select/adjuster/not_all_match.expected (from test/command/suite/select/adjuster/multiple.expected) test/command/suite/select/adjuster/not_all_match.test (from test/command/suite/select/adjuster/multiple.test) Modified files: test/command/suite/select/adjuster/multiple.expected test/command/suite/select/adjuster/multiple.test Modified: test/command/suite/select/adjuster/multiple.expected (+2 -5) =================================================================== --- test/command/suite/select/adjuster/multiple.expected 2014-02-20 15:15:29 +0900 (c9ae298) +++ test/command/suite/select/adjuster/multiple.expected 2014-02-20 15:20:18 +0900 (cae6f14) @@ -7,9 +7,6 @@ column_create Memos tags COLUMN_INDEX|WITH_WEIGHT Tags load --table Memos [ { - "_key": "unused" -}, -{ "_key": "Groonga is fast", "tags": { "groonga": 100 @@ -29,8 +26,8 @@ load --table Memos } } ] -[[0,0.0,0.0],4] -select Memos --filter '_id != 1' --adjuster 'tags @ "groonga" * 2.5 + tags @ "mroonga" * 0.5 + tags @ "ruby" * 1.5' --output_columns _key,_score +[[0,0.0,0.0],3] +select Memos --filter true --adjuster 'tags @ "groonga" * 2.5 + tags @ "mroonga" * 0.5 + tags @ "ruby" * 1.5' --output_columns _key,_score [ [ 0, Modified: test/command/suite/select/adjuster/multiple.test (+1 -4) =================================================================== --- test/command/suite/select/adjuster/multiple.test 2014-02-20 15:15:29 +0900 (42f9c41) +++ test/command/suite/select/adjuster/multiple.test 2014-02-20 15:20:18 +0900 (2d652f6) @@ -6,9 +6,6 @@ column_create Memos tags COLUMN_INDEX|WITH_WEIGHT Tags load --table Memos [ { - "_key": "unused" -}, -{ "_key": "Groonga is fast", "tags": { "groonga": 100 @@ -30,6 +27,6 @@ load --table Memos ] select Memos \ - --filter '_id != 1' \ + --filter true \ --adjuster 'tags @ "groonga" * 2.5 + tags @ "mroonga" * 0.5 + tags @ "ruby" * 1.5' \ --output_columns _key,_score Copied: test/command/suite/select/adjuster/not_all_match.expected (+4 -4) 88% =================================================================== --- test/command/suite/select/adjuster/multiple.expected 2014-02-20 15:15:29 +0900 (c9ae298) +++ test/command/suite/select/adjuster/not_all_match.expected 2014-02-20 15:20:18 +0900 (d547a08) @@ -30,7 +30,7 @@ load --table Memos } ] [[0,0.0,0.0],4] -select Memos --filter '_id != 1' --adjuster 'tags @ "groonga" * 2.5 + tags @ "mroonga" * 0.5 + tags @ "ruby" * 1.5' --output_columns _key,_score +select Memos --filter '_id != 1' --adjuster 'tags @ "groonga" * 1.0' --output_columns _key,_score [ [ 0, @@ -54,15 +54,15 @@ select Memos --filter '_id != 1' --adjuster 'tags @ "groonga" * 2.5 + tags @ ], [ "Groonga is fast", - 251 + 101 ], [ "Mroonga is also fast", - 76 + 11 ], [ "Ruby is an object oriented script language", - 151 + 1 ] ] ] Copied: test/command/suite/select/adjuster/not_all_match.test (+1 -1) 85% =================================================================== --- test/command/suite/select/adjuster/multiple.test 2014-02-20 15:15:29 +0900 (42f9c41) +++ test/command/suite/select/adjuster/not_all_match.test 2014-02-20 15:20:18 +0900 (946f885) @@ -31,5 +31,5 @@ load --table Memos select Memos \ --filter '_id != 1' \ - --adjuster 'tags @ "groonga" * 2.5 + tags @ "mroonga" * 0.5 + tags @ "ruby" * 1.5' \ + --adjuster 'tags @ "groonga" * 1.0' \ --output_columns _key,_score -------------- next part -------------- HTML����������������������������...Download