diff --git a/uni_modules/uts-tests/utssdk/Math.uts b/uni_modules/uts-tests/utssdk/Math.uts index 769e38047151a3688ac517391f7942acfdde5a8c..8e88f5da6746c075e51be6dccb49833230c2452b 100644 --- a/uni_modules/uts-tests/utssdk/Math.uts +++ b/uni_modules/uts-tests/utssdk/Math.uts @@ -126,7 +126,7 @@ export function testMath() : Result { // 解决精度问题 expect(Math.acos(-1)).toEqual(3.141592653589793); expect(Math.acos(0)).toEqual(1.5707963267948966); - expect(Math.acos(1)).toEqual(0.0); + expect(Math.acos(1)).toEqual(0); }) test('acosh', () => { @@ -145,7 +145,7 @@ export function testMath() : Result { // expected output: 1.566799236972411 // #END // 解决精度问题 - expect(Math.acosh(1)).toEqual(0.0); + expect(Math.acosh(1)).toEqual(0); expectNumber(Math.acosh(2)).toEqualDouble(1.3169578969248166); expectNumber(Math.acosh(2.5)).toEqualDouble(1.566799236972411); }) @@ -172,7 +172,7 @@ export function testMath() : Result { // 解决精度问题 expect(Math.asin(-1)).toEqual(-1.5707963267948966); // expect(Math.asin(0.5)).toEqual(0.5235987755982989); - expect(Math.asin(0)).toEqual(0.0); + expect(Math.asin(0)).toEqual(0); expect(Math.asin(1)).toEqual(1.5707963267948966); }) @@ -197,7 +197,7 @@ export function testMath() : Result { // #END // 解决精度问题 expectNumber(Math.asinh(1)).toEqualDouble(0.881373587019543); - expectNumber(Math.asinh(0)).toEqualDouble(0.0); + expectNumber(Math.asinh(0)).toEqualDouble(0); expectNumber(Math.asinh(-1)).toEqualDouble(-0.881373587019543); expectNumber(Math.asinh(2)).toEqualDouble(1.4436354751788103); }) @@ -217,7 +217,7 @@ export function testMath() : Result { // #END // 解决精度问题 expect(Math.atan(1)).toEqual(0.7853981633974483); - expect(Math.atan(0)).toEqual(0.0); + expect(Math.atan(0)).toEqual(0); }) test('atan2', () => { @@ -243,7 +243,7 @@ export function testMath() : Result { // expected output: 0 // #END // 解决精度问题 - expect(Math.atanh(0)).toEqual(0.0); + expect(Math.atanh(0)).toEqual(0); // expect(Math.atanh(0.5)).toEqual(0.5493061443340548); })