提交 1ec178eb 编写于 作者: 杜庆泉's avatar 杜庆泉

parseInt 调整部分示例

上级 d1a7d908
...@@ -76,8 +76,8 @@ export function testGlobal() : Result { ...@@ -76,8 +76,8 @@ export function testGlobal() : Result {
expect(parseInt("922337203685477580700099999999999999999999999999999999999999999999999999999999999999999")).toEqualNumber(9.223372036854776e+86) expect(parseInt("922337203685477580700099999999999999999999999999999999999999999999999999999999999999999")).toEqualNumber(9.223372036854776e+86)
expect(parseInt("50") / 100).toEqualNumber(0.5); expect(parseInt("50") / 100).toEqualNumber(0.5);
expect(parseInt("500") / 100).toEqualNumber(5); expect(parseInt("500") / 100).toEqualNumber(5);
expect(parseFloat("3.0").toString()).toEqual("3"); expect(parseInt("3.0").toString()).toEqual("3");
expect(parseFloat("3.02").toString()).toEqual("3"); expect(parseInt("3.02").toString()).toEqual("3");
// #END // #END
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册