提交 7baa3845 编写于 作者: D DCloud_LXH

fix: uts 测试条件编译书写错误

上级 acc576ac
...@@ -160,8 +160,6 @@ export class TFloat32Array { ...@@ -160,8 +160,6 @@ export class TFloat32Array {
let float32 = new Float32Array([4, 6, 8, 12]); let float32 = new Float32Array([4, 6, 8, 12]);
let res1 = float32.findIndex((value : number, _ : number, _a : Float32Array) : boolean => value > 100); let res1 = float32.findIndex((value : number, _ : number, _a : Float32Array) : boolean => value > 100);
console.log(res1); // -1 console.log(res1); // -1
// #END
let ufloat32 = new Float32Array([4, 6, 7, 120]); let ufloat32 = new Float32Array([4, 6, 7, 120]);
let res = ufloat32.findIndex((value : number, _ : number, _a : Float32Array) : boolean => value > 100); let res = ufloat32.findIndex((value : number, _ : number, _a : Float32Array) : boolean => value > 100);
...@@ -302,7 +300,6 @@ export class TFloat32Array { ...@@ -302,7 +300,6 @@ export class TFloat32Array {
// total = new Float32Array([0, 1, 2, 3]); // total = new Float32Array([0, 1, 2, 3]);
// res = total.reduceRight((accumulator : number, currentValue : number, _ : number, _a : Float32Array) : number => accumulator + currentValue, 8); // res = total.reduceRight((accumulator : number, currentValue : number, _ : number, _a : Float32Array) : number => accumulator + currentValue, 8);
// console.log(res); // 14 // console.log(res); // 14
// // #END
// expect(res).toEqual(14); // expect(res).toEqual(14);
} }
...@@ -407,11 +404,11 @@ export class TFloat32Array { ...@@ -407,11 +404,11 @@ export class TFloat32Array {
expect(positives.some((element : number, index : number, array : Float32Array) : boolean => expect(positives.some((element : number, index : number, array : Float32Array) : boolean =>
element < 0 element < 0
)).toEqual(false); )).toEqual(false);
expect(float32.some((element : number, index : number, array : Float32Array) : boolean => expect(float32.some((element : number, index : number, array : Float32Array) : boolean =>
element < 0 element < 0
)).toEqual(true); )).toEqual(true);
} }
// #endif // #endif
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册