From f12ab23a655dada38f95691f60af66c09922b0e9 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Wed, 20 Dec 2023 16:01:53 +0800 Subject: [PATCH] =?UTF-8?q?number.toString=20=E8=A1=A5=E5=85=85=E9=83=A8?= =?UTF-8?q?=E5=88=86=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/Number.uts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uni_modules/uts-tests/utssdk/Number.uts b/uni_modules/uts-tests/utssdk/Number.uts index 2dca1ed..302dbe2 100644 --- a/uni_modules/uts-tests/utssdk/Number.uts +++ b/uni_modules/uts-tests/utssdk/Number.uts @@ -84,7 +84,9 @@ export function testNumber() : Result { expect((6).toString(2)).toEqual("110"); expect((254).toString(16)).toEqual("fe"); expect((-10).toString(2)).toEqual("-1010"); - + expect((10.22).toString(8)).toEqual("12.16050753412172704"); + expect((-10.22).toString(8)).toEqual("-12.16050753412172704"); + expect((123456789987654).toString(16)).toEqual("7048861cc146"); expect((-0xff).toString(2)).toEqual("-11111111"); }) -- GitLab