From f2ac56e644de2244fab9b01f79ee51777e165dc9 Mon Sep 17 00:00:00 2001 From: mahaifeng Date: Mon, 9 Sep 2024 19:43:08 +0800 Subject: [PATCH] =?UTF-8?q?[bugfix]=20=E4=BF=AE=E5=A4=8Dutsnumber=20?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E6=95=B0=E6=8D=AE=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/Number.uts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uni_modules/uts-tests/utssdk/Number.uts b/uni_modules/uts-tests/utssdk/Number.uts index c4c089a..3d48ed9 100644 --- a/uni_modules/uts-tests/utssdk/Number.uts +++ b/uni_modules/uts-tests/utssdk/Number.uts @@ -230,8 +230,9 @@ export function testNumber() : Result { */ expect(bStr12.length).toEqual(21); expect(bStr12.substring(0, 14)).toEqual("27373a86ba1a19"); - + // #ifdef APP-ANDROID + expect(0.6.toString()).toEqual("0.6"); expect((new UTSNumber(2709954670497349.5)).toString()).toEqual("2709954670497349.5"); expect((new UTSNumber(0.00000000000001)).toString()).toEqual("1e-14"); expect((new UTSNumber(0.000001)).toString()).toEqual("0.000001"); -- GitLab