提交 59f99d90 编写于 作者: Y yanglifeng1217

<updata>

Signed-off-by: Nyanglifeng1217 <yanglifeng5@huawei.com>
上级 5f998868
......@@ -259,17 +259,17 @@ describe('relationalStoreTest', function () {
try {
store.version = 5
expect(5).assertEqual(store.version)
expect(5).assertEqual(store.version);
} catch (err) {
console.info("SUB_DDM_RelationalStore_Version_0010 failed: err: code=" + err.code + " message=" + err.message)
console.info("SUB_DDM_RelationalStore_Version_0010 failed: err: code=" + err.code + " message=" + err.message);
expect(null).assertFail();
}
try {
store.version = 2147483647
expect(2147483647).assertEqual(store.version)
expect(2147483647).assertEqual(store.version);
} catch (err) {
console.info(" SUB_DDM_RelationalStore_Version_0010 failed: err: code=" + err.code + " message=" + err.message)
console.info(" SUB_DDM_RelationalStore_Version_0010 failed: err: code=" + err.code + " message=" + err.message);
expect(null).assertFail();
}
......@@ -290,21 +290,21 @@ describe('relationalStoreTest', function () {
try {
store.version = -2147483648;
} catch (err) {
console.info("SUB_DDM_RelationalStore_Version_0020 failed1: err: code=" + err.code + " message=" + err.message)
console.info("SUB_DDM_RelationalStore_Version_0020 failed1: err: code=" + err.code + " message=" + err.message);
expect("401").assertEqual(err.code);
}
try {
store.version = 2147483647000;
} catch (err) {
console.info("SUB_DDM_RelationalStore_Version_0020 failed2: err: code=" + err.code + " message=" + err.message)
console.info("SUB_DDM_RelationalStore_Version_0020 failed2: err: code=" + err.code + " message=" + err.message);
expect("401").assertEqual(err.code);
}
try {
store.version = 0;
} catch (err) {
console.info("SUB_DDM_RelationalStore_Version_0020 failed3: err: code=" + err.code + " message=" + err.message)
console.info("SUB_DDM_RelationalStore_Version_0020 failed3: err: code=" + err.code + " message=" + err.message);
expect("401").assertEqual(err.code);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册