diff --git a/uni_modules/uts-tests/utssdk/Number.uts b/uni_modules/uts-tests/utssdk/Number.uts index 1ef6e64fa17606a97fb173ad4e646518aef162fb..8919e3a041ef59b09909b61b2864ff6c24648e58 100644 --- a/uni_modules/uts-tests/utssdk/Number.uts +++ b/uni_modules/uts-tests/utssdk/Number.uts @@ -93,6 +93,15 @@ export function testNumber() : Result { newA.a = 1.1 expect(aj?.a == newA.a).toEqual(false); expect(aj?.a === newA.a).toEqual(false); + + let a10 = JSON.parse("10") + let b10 = JSON.parse("10") + let c10 = JSON.parse("10.0") + expect(a10 == b10).toEqual(true); + expect(a10 == c10).toEqual(true); + let aj2 = JSON.parse('{"a":1}'); + expect(aj?.a == aj2?.a).toEqual(true); + })