diff --git a/uni_modules/uts-tests/utssdk/Number.uts b/uni_modules/uts-tests/utssdk/Number.uts index 8919e3a041ef59b09909b61b2864ff6c24648e58..0d1103ab5d0203a4013001357c79d9d2bb26ec74 100644 --- a/uni_modules/uts-tests/utssdk/Number.uts +++ b/uni_modules/uts-tests/utssdk/Number.uts @@ -114,6 +114,14 @@ export function testNumber() : Result { test('isNaN', () => { expect(isNaN(0)).toEqual(false); + + let aj2 = JSON.parse('{"a":1}') as UTSJSONObject; + let aNumber = aj2['a'] as UTSNumber + expect(isNaN(aNumber)).toEqual(false); + expect(UTSNumber.isNaN(aNumber)).toEqual(false); + expect(UTSNumber.isNaN(11)).toEqual(false); + expect(UTSNumber.isNaN(null)).toEqual(false); + expect(UTSNumber.isNaN(1 / 0)).toEqual(false); }) test('toPrecision', () => {