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

调整部分测试例

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