From d0e9b2a53f39d68fc9fe8797905919150f52d6c4 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Mon, 29 Jul 2024 11:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9D=A1=E4=BB=B6=E7=BC=96?= =?UTF-8?q?=E8=AF=91=20=E9=81=BF=E5=85=8D=E9=83=A8=E5=88=86=E7=A4=BA?= =?UTF-8?q?=E4=BE=8Bandroid=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/JSON.uts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uni_modules/uts-tests/utssdk/JSON.uts b/uni_modules/uts-tests/utssdk/JSON.uts index e109259..ec183d7 100644 --- a/uni_modules/uts-tests/utssdk/JSON.uts +++ b/uni_modules/uts-tests/utssdk/JSON.uts @@ -405,16 +405,19 @@ export function testJSON() : Result { }) test('parse generic type', () => { + // #ifndef APP-ANDROID type A = { num: number, } function test(json: string): T { return JSON.parse(json)! } + // #ifndef APP-IOS const a = test(`{"num": 1}`) expect(a.num).toEqual(1) // #endif + // #endif }) -- GitLab