提交 133051c2 编写于 作者: 杜庆泉's avatar 杜庆泉

补充 long 类型除法测试示例

上级 8ffe1e04
...@@ -110,6 +110,11 @@ export function testOperators(): Result { ...@@ -110,6 +110,11 @@ export function testOperators(): Result {
// web 返回 Infinity // web 返回 Infinity
// todo 统一处理 // todo 统一处理
// expect(divide(1, 0)).toEqual(); // expect(divide(1, 0)).toEqual();
expect(divide(16788990011, 5)).toEqual(3357798002.2);
expect(divide(16788990015, 5)).toEqual(3357798003);
expectNumber(divide(16788990015, 10088990000)).toEqualDouble(1.6640902622561822);
}) })
test('/=', () => { test('/=', () => {
let a:Number = 3; let a:Number = 3;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册