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

调整部分case

上级 6297024a
...@@ -63,7 +63,7 @@ export function testNumber(): Result { ...@@ -63,7 +63,7 @@ export function testNumber(): Result {
expect(isFinite(0)).toEqual(true); expect(isFinite(0)).toEqual(true);
}) })
test('isInteger', () => { test('isInteger', () => {
expect(Number.isInteger(12.0)).toEqual(true); expect(Number.isInteger(12)).toEqual(true);
expect(Number.isInteger(12.01)).toEqual(false); expect(Number.isInteger(12.01)).toEqual(false);
expect(Number.isInteger(-213123112.01)).toEqual(false); expect(Number.isInteger(-213123112.01)).toEqual(false);
expect(Number.isInteger(-213123112)).toEqual(true); expect(Number.isInteger(-213123112)).toEqual(true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册