diff --git a/uni_modules/uts-tests/utssdk/Math.uts b/uni_modules/uts-tests/utssdk/Math.uts index 1f5aa0de3fea831b6e9459101a94506c0e22063e..e4ddabf814debf047add9f638df5d6e4c1a5e804 100644 --- a/uni_modules/uts-tests/utssdk/Math.uts +++ b/uni_modules/uts-tests/utssdk/Math.uts @@ -236,5 +236,10 @@ export function testMath(): Result { expect(Math.trunc(42.84)).toEqual(42); expect(Math.trunc(0.123)).toEqual(0); }) + test('round', () => { + expect(Math.round(0.9).toEqual(1)); + expect(Math.round(5.95)).toEqual(6); + expect(Math.round(-5.05)).toEqual(-5); + }) }) }