YUKI Hiroshi
null+****@clear*****
Tue Dec 2 11:47:54 JST 2014
YUKI Hiroshi 2014-12-02 11:47:54 +0900 (Tue, 02 Dec 2014) New Revision: 8c619df4c5f9aa84cb42bb39fcdb3fc2707c608f https://github.com/droonga/droonga-engine/commit/8c619df4c5f9aa84cb42bb39fcdb3fc2707c608f Message: Add more tests for mismatched type for keys Added files: test/command/suite/groonga/delete/key-integer-by-string.expected test/command/suite/groonga/delete/key-string-by-integer.expected Copied files: test/command/suite/groonga/delete/key-integer-by-string.test (from test/command/suite/groonga/delete/key-integer.test) test/command/suite/groonga/delete/key-string-by-integer.test (from test/command/suite/groonga/delete/key-integer.test) Modified files: test/command/suite/groonga/delete/key-integer.test Added: test/command/suite/groonga/delete/key-integer-by-string.expected (+19 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/groonga/delete/key-integer-by-string.expected 2014-12-02 11:47:54 +0900 (a973283) @@ -0,0 +1,19 @@ +{ + "inReplyTo": "request-id", + "statusCode": 200, + "type": "add.result", + "body": true +} +{ + "inReplyTo": "request-id", + "statusCode": 200, + "type": "delete.result", + "body": [ + [ + 0, + 0.0, + 0.0 + ], + true + ] +} Copied: test/command/suite/groonga/delete/key-integer-by-string.test (+1 -1) 92% =================================================================== --- test/command/suite/groonga/delete/key-integer.test 2014-12-02 11:40:08 +0900 (baf0196) +++ test/command/suite/groonga/delete/key-integer-by-string.test 2014-12-02 11:47:54 +0900 (99d768e) @@ -4,7 +4,7 @@ "dataset": "Default", "body": { "table" : "User", - "key" : "1", + "key" : 1, "values" : { "name": "1" } Modified: test/command/suite/groonga/delete/key-integer.test (+3 -3) =================================================================== --- test/command/suite/groonga/delete/key-integer.test 2014-12-02 11:40:08 +0900 (baf0196) +++ test/command/suite/groonga/delete/key-integer.test 2014-12-02 11:47:54 +0900 (a08f8ee) @@ -1,10 +1,10 @@ -#@include fixture/user-table.jsons +#@include fixture/integer-key-table.jsons { "type": "add", "dataset": "Default", "body": { "table" : "User", - "key" : "1", + "key" : 1, "values" : { "name": "1" } @@ -15,6 +15,6 @@ "dataset": "Default", "body": { "table" : "User", - "key" : "1" + "key" : 1 } } Added: test/command/suite/groonga/delete/key-string-by-integer.expected (+19 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/groonga/delete/key-string-by-integer.expected 2014-12-02 11:47:54 +0900 (a973283) @@ -0,0 +1,19 @@ +{ + "inReplyTo": "request-id", + "statusCode": 200, + "type": "add.result", + "body": true +} +{ + "inReplyTo": "request-id", + "statusCode": 200, + "type": "delete.result", + "body": [ + [ + 0, + 0.0, + 0.0 + ], + true + ] +} Copied: test/command/suite/groonga/delete/key-string-by-integer.test (+1 -2) 87% =================================================================== --- test/command/suite/groonga/delete/key-integer.test 2014-12-02 11:40:08 +0900 (baf0196) +++ test/command/suite/groonga/delete/key-string-by-integer.test 2014-12-02 11:47:54 +0900 (8d03d55) @@ -6,7 +6,6 @@ "table" : "User", "key" : "1", "values" : { - "name": "1" } } } @@ -15,6 +14,6 @@ "dataset": "Default", "body": { "table" : "User", - "key" : "1" + "key" : 1 } } -------------- next part -------------- HTML����������������������������... 下載