From bdee5dcf87e412fc1c47e67223c94688ebf1b236 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 5 Sep 2024 17:51:23 +0800 Subject: [PATCH] =?UTF-8?q?Math.ceil=20=E5=A2=9E=E5=8A=A0NaN=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/Math.uts | 1 + 1 file changed, 1 insertion(+) diff --git a/uni_modules/uts-tests/utssdk/Math.uts b/uni_modules/uts-tests/utssdk/Math.uts index 4216dc3..1e69e8f 100644 --- a/uni_modules/uts-tests/utssdk/Math.uts +++ b/uni_modules/uts-tests/utssdk/Math.uts @@ -113,6 +113,7 @@ export function testMath(): Result { }) test('ceil', () => { expect(Math.ceil(0.95)).toEqual(1); + expect(Math.ceil(NaN)).toEqual(NaN); expect(Math.ceil(4)).toEqual(4); expect(Math.ceil(7.004)).toEqual(8); expect(Math.ceil(-7.004)).toEqual(-7); -- GitLab