提交 6c62b746 编写于 作者: 杜庆泉's avatar 杜庆泉

增加 google-service.json 集成示例

上级 b22beded
...@@ -93,6 +93,7 @@ export function testMath(): Result { ...@@ -93,6 +93,7 @@ export function testMath(): Result {
expect(Math.atan2(90, 15)).toEqual(1.4056476493802699); expect(Math.atan2(90, 15)).toEqual(1.4056476493802699);
expect(Math.atan2(15, 90)).toEqual(0.16514867741462683); expect(Math.atan2(15, 90)).toEqual(0.16514867741462683);
}) })
test('atanh', () => { test('atanh', () => {
// 解决精度问题 // 解决精度问题
expect(Math.atanh(0)).toEqual(0.0); expect(Math.atanh(0)).toEqual(0.0);
...@@ -241,6 +242,7 @@ export function testMath(): Result { ...@@ -241,6 +242,7 @@ export function testMath(): Result {
expect(Math.trunc(0.123)).toEqual(0); expect(Math.trunc(0.123)).toEqual(0);
}) })
test('round', () => { test('round', () => {
expect(Math.round(NaN)).toEqual(NaN);
expect(Math.round(0.9)).toEqual(1); expect(Math.round(0.9)).toEqual(1);
expect(Math.round(5.95)).toEqual(6); expect(Math.round(5.95)).toEqual(6);
expect(Math.round(-5.05)).toEqual(-5); expect(Math.round(-5.05)).toEqual(-5);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册