diff --git a/manifest.json b/manifest.json index 1a2f1e0c8c3a8d2caff370b2247bde56261d06a1..d67f32859c933342c5568cae3ad770bd22a6087d 100644 --- a/manifest.json +++ b/manifest.json @@ -74,10 +74,10 @@ "uniStatistics": { "enable": false }, - "vueVersion": "3", - "uni-app-x" : { - "uvue" : { - "flex-direction" : "cloum" - } - } + "vueVersion": "3" + // "uni-app-x" : { + // "uvue" : { + // "flex-direction" : "cloum" + // } + // } } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/Number.uts b/uni_modules/uts-tests/utssdk/Number.uts index fbf626f34651c5fb3559999a7494a06f0cf702a5..b9109d59752ebd4ecdc95e188752ff4ecdbe9c8e 100644 --- a/uni_modules/uts-tests/utssdk/Number.uts +++ b/uni_modules/uts-tests/utssdk/Number.uts @@ -35,5 +35,21 @@ export function testNumber(): Result { expect(1.23e5.toPrecision(4)).toEqual("1.230e+5"); }) + test('toString', () => { + expect((10).toString()).toEqual("10"); + expect((17).toString()).toEqual("17"); + expect((17.2).toString()).toEqual("17.2"); + expect((6).toString(2)).toEqual("110"); + expect((254).toString(16)).toEqual("fe"); + expect((-10).toString(2)).toEqual("-1010"); + expect((-0xff).toString(2)).toEqual("-11111111"); + }) + + test('valueOf', () => { + expect((10).valueOf()).toEqual(10); + expect((-10.2).valueOf()).toEqual(-10.2); + expect((0xf).valueOf()).toEqual(15); + }) + }) }