提交 348c5008 编写于 作者: lizhongyi_'s avatar lizhongyi_ 提交者: 杜庆泉

调整number测试例

上级 3ab9e700
...@@ -22,12 +22,13 @@ export function testNumber(): Result { ...@@ -22,12 +22,13 @@ export function testNumber(): Result {
console.log(JSON.stringify(obj)) console.log(JSON.stringify(obj))
// #ifndef APP-IOS
// android 专有数据类型
expect(123456.789.toFixed(2)).toEqual("123456.79"); expect(123456.789.toFixed(2)).toEqual("123456.79");
expect(12345600123.789123.toFixed(2)).toEqual("12345600123.79"); expect(12345600123.789123.toFixed(2)).toEqual("12345600123.79");
expect((-123456.789).toFixed(5)).toEqual("-123456.78900"); expect((-123456.789).toFixed(5)).toEqual("-123456.78900");
expect(parseFloat("16688995566.369").toFixed(3)).toEqual("16688995566.369"); expect(parseFloat("16688995566.369").toFixed(3)).toEqual("16688995566.369");
// #ifndef APP-IOS
// android 专有数据类型
let a1 = 56 let a1 = 56
let a2 = -122 let a2 = -122
expect(a1.toByte().toFixed(2)).toEqual("56.00"); expect(a1.toByte().toFixed(2)).toEqual("56.00");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册