提交 a2cfc3a3 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整UTSiOS 测试例

(cherry picked from commit 90947b48)
上级 ca641b1f
...@@ -397,10 +397,10 @@ function convertBoolTest(): UTSiOSTestResult { ...@@ -397,10 +397,10 @@ function convertBoolTest(): UTSiOSTestResult {
/* 将数据转换为 NSNumber */ /* 将数据转换为 NSNumber */
function convertNumberTest(): UTSiOSTestResult { function convertNumberTest(): UTSiOSTestResult {
let ret: NSNumber = UTSiOS.convertNumber(1000) let ret: NSNumber | null = UTSiOS.convertNumber(1000)
let res: UTSiOSTestResult = { let res: UTSiOSTestResult = {
key: "1000 转成number", key: "1000 转成number",
value: `${ret.intValue}`, value: `${ret?.intValue}`,
passed: true passed: true
} }
return res; return res;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册