diff --git a/nativeResources/android/google-services.json b/nativeResources/android/google-services.json new file mode 100644 index 0000000000000000000000000000000000000000..efd261bf79519c997d1c2ac4154798d551f022dd --- /dev/null +++ b/nativeResources/android/google-services.json @@ -0,0 +1 @@ +demo \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/Math.uts b/uni_modules/uts-tests/utssdk/Math.uts index 0099b4ecde04fd7c69d17e75d53a6ad12d7613c1..10418adca2b9277189ed4bea6a8aff6e8a6cba48 100644 --- a/uni_modules/uts-tests/utssdk/Math.uts +++ b/uni_modules/uts-tests/utssdk/Math.uts @@ -93,6 +93,7 @@ export function testMath(): Result { expect(Math.atan2(90, 15)).toEqual(1.4056476493802699); expect(Math.atan2(15, 90)).toEqual(0.16514867741462683); }) + test('atanh', () => { // 解决精度问题 expect(Math.atanh(0)).toEqual(0.0); @@ -241,6 +242,7 @@ export function testMath(): Result { expect(Math.trunc(0.123)).toEqual(0); }) test('round', () => { + expect(Math.round(NaN)).toEqual(NaN); expect(Math.round(0.9)).toEqual(1); expect(Math.round(5.95)).toEqual(6); expect(Math.round(-5.05)).toEqual(-5);