提交 818aee76 编写于 作者: 杜庆泉's avatar 杜庆泉

调整测试示例适配number类型

上级 6bfd7f85
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"versionName" : "1.0.9", "versionName" : "1.0.9",
"versionCode" : "109", "versionCode" : "109",
"transformPx" : false, "transformPx" : false,
"uni-app-x" : {},
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus" : {
"usingComponents" : true, "usingComponents" : true,
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
return; return;
} }
if(getLog(2023) != '{"type":"number","value":"2023"}'){
if(getLog(2023) != '{"subType":"number","type":"Int","value":"2023"}'){
this.testRet = "测试失败" this.testRet = "测试失败"
return; return;
} }
...@@ -39,13 +40,11 @@ ...@@ -39,13 +40,11 @@
// this.testRet = "测试失败" // this.testRet = "测试失败"
// return; // return;
// } // }
if(getLog(2023.002) != '{"subType":"number","type":"Double","value":"2023.002"}'){
if(getLog(2023.002) != '{"type":"number","value":"2023.002"}'){
this.testRet = "测试失败" this.testRet = "测试失败"
return; return;
} }
if(logObjectTest() != '{"className":"uts.sdk.modules.utsApiTest.ParamOptions","subType":"object","__$originalPosition":"","type":"object","value":{"methods":[],"properties":[{"name":"array","subType":"array","className":"io.dcloud.uts.UTSArray","type":"object","value":{"properties":[{"name":0,"type":"string","value":"1"},{"name":1,"type":"string","value":"2"},{"name":2,"type":"string","value":"3"}]}},{"name":"title","type":"string","value":"logObjectTest"}]}}'){ if(logObjectTest() != '{"className":"uts.sdk.modules.utsApiTest.ParamOptions","subType":"object","__$originalPosition":"","type":"object","value":{"methods":[],"properties":[{"name":"array","subType":"array","className":"io.dcloud.uts.UTSArray","type":"object","value":{"properties":[{"name":0,"type":"string","value":"1"},{"name":1,"type":"string","value":"2"},{"name":2,"type":"string","value":"3"}]}},{"name":"title","type":"string","value":"logObjectTest"}]}}'){
this.testRet = "测试失败" this.testRet = "测试失败"
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册