From ad15fcba1a45a21d74253280033cdfe351e44305 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 4 Jul 2024 11:10:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=B5=E5=BE=AA=E5=BB=BA=E8=AE=AE=EF=BC=8C?= =?UTF-8?q?=E8=BF=98=E5=8E=9F=E9=83=A8=E5=88=86=E8=AD=A6=E5=91=8A=E5=86=99?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/Array.uts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/Array.uts b/uni_modules/uts-tests/utssdk/Array.uts index 5251a11..f084e3c 100644 --- a/uni_modules/uts-tests/utssdk/Array.uts +++ b/uni_modules/uts-tests/utssdk/Array.uts @@ -184,16 +184,11 @@ export function testArray(): Result { x : number y : number } - // #ifdef WEB - const s = JSON.parse(JSON.stringify([{ x: 0, y: 0 }])) as P[] - s[0].x += 0; - const clearList = s.map((v : P, _, a) : number => v.x) - expect(clearList.includes(0)).toEqual(true); - // #endif - // #ifdef APP-ANDROID + + // #ifndef APP-IOS const s = JSON.parse(JSON.stringify([{ x: 0, y: 0 }])) as P[] s[0].x += 0; - const clearList = s.map((v : P, _, _) : number => v.x) + const clearList = s.map((v : P, _, _a) : number => v.x) expect(clearList.includes(0)).toEqual(true); // #endif // #ifdef APP-IOS -- GitLab