From 1ec178ebd71458bf0725e4c28cbf93a9b57facb7 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Sat, 21 Sep 2024 12:33:30 +0800 Subject: [PATCH] =?UTF-8?q?parseInt=20=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86?= =?UTF-8?q?=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/Global.uts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/Global.uts b/uni_modules/uts-tests/utssdk/Global.uts index 1c96bfc..8c8f527 100644 --- a/uni_modules/uts-tests/utssdk/Global.uts +++ b/uni_modules/uts-tests/utssdk/Global.uts @@ -76,8 +76,8 @@ export function testGlobal() : Result { expect(parseInt("922337203685477580700099999999999999999999999999999999999999999999999999999999999999999")).toEqualNumber(9.223372036854776e+86) expect(parseInt("50") / 100).toEqualNumber(0.5); expect(parseInt("500") / 100).toEqualNumber(5); - expect(parseFloat("3.0").toString()).toEqual("3"); - expect(parseFloat("3.02").toString()).toEqual("3"); + expect(parseInt("3.0").toString()).toEqual("3"); + expect(parseInt("3.02").toString()).toEqual("3"); // #END }) -- GitLab