mirror of https://gitee.com/bigwinds/arangodb
added test
This commit is contained in:
parent
29cedd79fc
commit
ba30df4e5c
|
@ -91,7 +91,7 @@ var validateDeleteGone = function (collection, results) {
|
|||
assertEqual(collection.document(results[index]._key), {});
|
||||
fail();
|
||||
}
|
||||
catch(e) {
|
||||
catch (e) {
|
||||
assertTrue(e.errorNum !== undefined, "unexpected error format while calling checking for deleted entry");
|
||||
assertEqual(errors.ERROR_ARANGO_DOCUMENT_NOT_FOUND.code, e.errorNum, "unexpected error code (" + e.errorMessage + "): ");
|
||||
}
|
||||
|
@ -264,6 +264,14 @@ function ahuacatlModifySuite () {
|
|||
assertQueryError(errors.ERROR_QUERY_PARSE.code, "UPDATE 'abc' WITH { } IN @@cn LET updated = NEW RETURN foo", { "@cn": cn1 });
|
||||
},
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief test variable names
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
testInvalidVariableNames3 : function () {
|
||||
assertQueryError(errors.ERROR_QUERY_PARSE.code, "FOR i IN 1..1 UPDATE 'abc' WITH { } IN @@cn LET updated = NEW RETURN i", { "@cn": cn1 });
|
||||
},
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief test empty results
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue