From b7539bbb23cb834df66f0db7e3791756f5efc1cd Mon Sep 17 00:00:00 2001 From: m0_75226990 Date: Thu, 10 Oct 2024 18:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/Global.uts b/uni_modules/uts-tests/utssdk/Global.uts index 8c8f527..ee3b75a 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(parseInt("3.0").toString()).toEqual("3"); - expect(parseInt("3.02").toString()).toEqual("3"); + expect(parseInt("3.0")).toEqual(3); + expect(parseInt("3.02")).toEqual(3); // #END }) @@ -92,7 +92,7 @@ export function testGlobal() : Result { expect(parseFloat("100") / 50).toEqualNumber(2); expect(parseFloat("105") / 50).toEqual(2.1); - expect(parseFloat("3.0").toString()).toEqual("3"); + expect(parseFloat("3.0")).toEqual(3); expect(parseFloat("3.02").toString()).toEqual("3.02"); // #END }) -- GitLab