YUKI Hiroshi
null+****@clear*****
Tue Dec 2 11:27:26 JST 2014
YUKI Hiroshi 2014-12-02 11:27:26 +0900 (Tue, 02 Dec 2014) New Revision: 0f0c968ef780e346dd0afbe996b85c06f78bad2b https://github.com/droonga/droonga-engine/commit/0f0c968ef780e346dd0afbe996b85c06f78bad2b Message: Add drntest for Groonga's delete command with integer key Added files: test/command/fixture/integer-key-table.jsons Copied files: test/command/suite/groonga/delete/key-integer.expected (from test/command/suite/groonga/delete/success.expected) test/command/suite/groonga/delete/key-integer.test (from test/command/suite/groonga/delete/success.test) Renamed files: test/command/suite/groonga/delete/key-string.expected (from test/command/suite/groonga/delete/success.expected) test/command/suite/groonga/delete/key-string.test (from test/command/suite/groonga/delete/success.test) Added: test/command/fixture/integer-key-table.jsons (+48 -0) 100644 =================================================================== --- /dev/null +++ test/command/fixture/integer-key-table.jsons 2014-12-02 11:27:26 +0900 (cfb4c03) @@ -0,0 +1,48 @@ +#@disable-logging +{ + "type": "table_create", + "dataset": "Default", + "body": { + "name" : "User", + "flags" : "TABLE_PAT_KEY", + "key_type" : "UInt32" + } +} +{ + "type": "column_create", + "dataset": "Default", + "body": { + "table" : "User", + "name" : "name", + "type" : "ShortText" + } +} +{ + "type": "column_create", + "dataset": "Default", + "body": { + "table" : "User", + "name" : "age", + "type" : "Int32" + } +} +{ + "type": "column_create", + "dataset": "Default", + "body": { + "table" : "User", + "name" : "email", + "type" : "ShortText", + "flags" : "COLUMN_VECTOR" + } +} +{ + "type": "column_create", + "dataset": "Default", + "body": { + "table" : "User", + "name" : "birthday", + "type" : "Time" + } +} +#@enable-logging Copied: test/command/suite/groonga/delete/key-integer.expected (+0 -0) 100% =================================================================== Copied: test/command/suite/groonga/delete/key-integer.test (+3 -2) 80% =================================================================== --- test/command/suite/groonga/delete/success.test 2014-12-02 11:22:47 +0900 (45a9019) +++ test/command/suite/groonga/delete/key-integer.test 2014-12-02 11:27:26 +0900 (baf0196) @@ -4,8 +4,9 @@ "dataset": "Default", "body": { "table" : "User", - "key" : "key", + "key" : "1", "values" : { + "name": "1" } } } @@ -14,6 +15,6 @@ "dataset": "Default", "body": { "table" : "User", - "key" : "key" + "key" : "1" } } Renamed: test/command/suite/groonga/delete/key-string.expected (+0 -0) 100% =================================================================== Renamed: test/command/suite/groonga/delete/key-string.test (+0 -0) 100% =================================================================== -------------- next part -------------- HTML����������������������������... Télécharger