From 37ebc5aa0c184ddd9193d83a8324c910a7134fc7 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Wed, 31 Jul 2024 13:39:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20uts=20=E6=B5=8B=E8=AF=95=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E7=BC=96=E8=AF=91=E4=B9=A6=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/TFloat32Array.uts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/TFloat32Array.uts b/uni_modules/uts-tests/utssdk/TFloat32Array.uts index 86d91b1..494064e 100644 --- a/uni_modules/uts-tests/utssdk/TFloat32Array.uts +++ b/uni_modules/uts-tests/utssdk/TFloat32Array.uts @@ -160,8 +160,6 @@ export class TFloat32Array { let float32 = new Float32Array([4, 6, 8, 12]); let res1 = float32.findIndex((value : number, _ : number, _a : Float32Array) : boolean => value > 100); console.log(res1); // -1 - // #END - let ufloat32 = new Float32Array([4, 6, 7, 120]); let res = ufloat32.findIndex((value : number, _ : number, _a : Float32Array) : boolean => value > 100); @@ -302,7 +300,6 @@ export class TFloat32Array { // total = new Float32Array([0, 1, 2, 3]); // res = total.reduceRight((accumulator : number, currentValue : number, _ : number, _a : Float32Array) : number => accumulator + currentValue, 8); // console.log(res); // 14 - // // #END // expect(res).toEqual(14); } @@ -407,11 +404,11 @@ export class TFloat32Array { expect(positives.some((element : number, index : number, array : Float32Array) : boolean => element < 0 )).toEqual(false); - + expect(float32.some((element : number, index : number, array : Float32Array) : boolean => element < 0 )).toEqual(true); } // #endif -} \ No newline at end of file +} -- GitLab