diff --git a/uni_modules/uts-tests/utssdk/ArrayBuffer.uts b/uni_modules/uts-tests/utssdk/ArrayBuffer.uts index 2df130391d8f99b65f65bcedad23ceaa4c6c17fc..2f66bd12da5f957d747db6a5a7c4329456c4e57d 100644 --- a/uni_modules/uts-tests/utssdk/ArrayBuffer.uts +++ b/uni_modules/uts-tests/utssdk/ArrayBuffer.uts @@ -23,7 +23,6 @@ const int16 = new TInt16Array() export function testArrayBuffer() : Result { return describe("ArrayBuffer", () => { - // #ifdef APP-ANDROID //dataview start test('dataview_constructor', () => { tDataView.setConstructor() @@ -76,9 +75,6 @@ export function testArrayBuffer() : Result { test('float32_testSet', () => { float32.testSet() }) - test('float32_testSome', () => { - float32.testSome() - }) test('float32_testFrom', () => { float32.from() }) @@ -216,9 +212,6 @@ export function testArrayBuffer() : Result { test('float64_arrayBufferSlice', () => { float64.arrayBufferSlice() }) - test('float64_testSome', () => { - float64.testSome() - }) //float64 end //int8 start @@ -291,9 +284,6 @@ export function testArrayBuffer() : Result { test('int8_arrayBufferSlice', () => { int8.arrayBufferSlice() }) - test('int8_testSome', () => { - int8.testSome() - }) // //int8 end @@ -367,9 +357,6 @@ export function testArrayBuffer() : Result { test('int16_arrayBufferSlice', () => { int16.arrayBufferSlice() }) - test('int16_testSome', () => { - int16.testSome() - }) //int16 end @@ -443,9 +430,6 @@ export function testArrayBuffer() : Result { test('int32_arrayBufferSlice', () => { int32.arrayBufferSlice() }) - test('int32_testSome', () => { - int32.testSome() - }) //int32 end @@ -522,9 +506,6 @@ export function testArrayBuffer() : Result { test('uint8_arrayBufferSlice', () => { uint8.arrayBufferSlice() }) - test('uint8_testSome', () => { - uint8.testSome() - }) //uint8 end @@ -598,9 +579,6 @@ export function testArrayBuffer() : Result { test('uint8Clamped_arrayBufferSlice', () => { uint8Clamped.arrayBufferSlice() }) - test('uint8Clamped_testSome', () => { - uint8Clamped.testSome() - }) //uint8Clamped end @@ -674,9 +652,6 @@ export function testArrayBuffer() : Result { test('uint16_arrayBufferSlice', () => { uint16.arrayBufferSlice() }) - test('uint16_testSome', () => { - uint16.testSome() - }) //uint16 end @@ -750,10 +725,7 @@ export function testArrayBuffer() : Result { test('uint32_arrayBufferSlice', () => { uint32.arrayBufferSlice() }) - test('uint32_testSome', () => { - uint32.testSome() - }) - // #endif + //uint32 end }) } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/TFloat32Array.uts b/uni_modules/uts-tests/utssdk/TFloat32Array.uts index 89549b7d728a68257bdb61f07cfa66ccef35bf22..d9a463da74ebd69d4d10cb24e88a111ee4c7440f 100644 --- a/uni_modules/uts-tests/utssdk/TFloat32Array.uts +++ b/uni_modules/uts-tests/utssdk/TFloat32Array.uts @@ -324,20 +324,5 @@ export class TFloat32Array { // #END } - testSome() { - // #TEST Float32Array.some - const float32 = new Float32Array([-10, 20, -30, 40, -50]); - const positives = new Float32Array([10, 20, 30, 40, 50]); - - expect(float32.some((element : number, index : number, array : Float32Array) : boolean => - element < 0 - )).toEqual(true); - - - expect(positives.some((element : number, index : number, array : Float32Array) : boolean => - element < 0 - )).toEqual(false); - // #END - } // #endif } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/TFloat64Array.uts b/uni_modules/uts-tests/utssdk/TFloat64Array.uts index bc347d63230e6ff512439300dd262e36a09bc3ac..e552c52c05f21b2c140406c8112103ba7811e467 100644 --- a/uni_modules/uts-tests/utssdk/TFloat64Array.uts +++ b/uni_modules/uts-tests/utssdk/TFloat64Array.uts @@ -317,20 +317,6 @@ export class TFloat64Array { // #END } - testSome() { - // #TEST Float64Array.some - const float64 = new Float64Array([-10, 20, -30, 40, -50]); - const positives = new Float64Array([10, 20, 30, 40, 50]); - expect(float64.some((element : number, index : number, array : Float64Array) : boolean => - element < 0 - )).toEqual(true); - - - expect(positives.some((element : number, index : number, array : Float64Array) : boolean => - element < 0 - )).toEqual(false); - // #END - } // #endif } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/TInt16Array.uts b/uni_modules/uts-tests/utssdk/TInt16Array.uts index 469abf1cde7b2d12248433a49928dac7fefa1061..1d711d0d290a008daf061116ce6bfeec31168978 100644 --- a/uni_modules/uts-tests/utssdk/TInt16Array.uts +++ b/uni_modules/uts-tests/utssdk/TInt16Array.uts @@ -292,20 +292,6 @@ export class TInt16Array { // #END } - testSome() { - // #TEST Int16Array.some - const int16 = new Int16Array([-10, 20, -30, 40, -50]); - const positives = new Int16Array([10, 20, 30, 40, 50]); - expect(int16.some((element : number, index : number, array : Int16Array) : boolean => - element < 0 - )).toEqual(true); - - - expect(positives.some((element : number, index : number, array : Int16Array) : boolean => - element < 0 - )).toEqual(false); - // #END - } // #endif } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/TInt32Array.uts b/uni_modules/uts-tests/utssdk/TInt32Array.uts index 0b73a373db85906e8e439f374eca8856336fe275..21b111b6a44003853607e2ebbed9a777f8ec54ce 100644 --- a/uni_modules/uts-tests/utssdk/TInt32Array.uts +++ b/uni_modules/uts-tests/utssdk/TInt32Array.uts @@ -311,20 +311,6 @@ export class TInt32Array { // #END } - testSome() { - // #TEST Int32Array.some - const int32 = new Int32Array([-10, 20, -30, 40, -50]); - const positives = new Int32Array([10, 20, 30, 40, 50]); - expect(int32.some((element : number, index : number, array : Int32Array) : boolean => - element < 0 - )).toEqual(true); - - - expect(positives.some((element : number, index : number, array : Int32Array) : boolean => - element < 0 - )).toEqual(false); - // #END - } // #endif } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/TInt8Array.uts b/uni_modules/uts-tests/utssdk/TInt8Array.uts index ba4fde41a6d46a4b32140613573ba3564e5415de..6dbf0032fd87f8f2d84422654890b3d2e9fa91aa 100644 --- a/uni_modules/uts-tests/utssdk/TInt8Array.uts +++ b/uni_modules/uts-tests/utssdk/TInt8Array.uts @@ -53,7 +53,7 @@ export class TInt8Array { } testCopyWith() { - // #TEST Int8Array.copyWithin + // #TEST Int8Array.copyWith let int8 = new Int8Array(8); int8.set([1, 2, 3], 1); int8.copyWithin(3, 0, 3); @@ -308,20 +308,5 @@ export class TInt8Array { } - testSome() { - // #TEST Int8Array.some - const int8 = new Int8Array([-10, 20, -30, 40, -50]); - const positives = new Int8Array([10, 20, 30, 40, 50]); - - expect(int8.some((element : number, index : number, array : Int8Array) : boolean => - element < 0 - )).toEqual(true); - - - expect(positives.some((element : number, index : number, array : Int8Array) : boolean => - element < 0 - )).toEqual(false); - // #END - } // #endif } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/TUInt8Array.uts b/uni_modules/uts-tests/utssdk/TUInt8Array.uts index cbacbc4c7c5da17e44ba79c2d01c58aa733ec201..a298d95f491c0d79a0ecaabbc7d52f24aed1facf 100644 --- a/uni_modules/uts-tests/utssdk/TUInt8Array.uts +++ b/uni_modules/uts-tests/utssdk/TUInt8Array.uts @@ -293,7 +293,7 @@ export class TUint8Array { } arrayBufferSlice() { - + // #TEST ArrayBuffer.slice let buffer = new ArrayBuffer(16); let uint8 = new Uint8Array(buffer); @@ -304,23 +304,8 @@ export class TUint8Array { let sliced = new Uint8Array(res); expect(sliced[0]).toEqual(42); // #END - - } - testSome() { - // #TEST Uint8Array.some - const uint8 = new Uint8Array([8, 20, 30, 40, 50]); - const positives = new Uint8Array([10, 20, 30, 40, 50]); - var res = uint8.some((element : number, index : number, array : Uint8Array) : boolean => - element < 10 - ) - expect(res).toEqual(true); - console.log('uint8',res) - res = positives.some((element : number, index : number, array : Uint8Array) : boolean => - element < 0 - ) - console.log('uint8',res) - expect(res).toEqual(false); - // #END + } + // #endif } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/TUInt8ClampedArray.uts b/uni_modules/uts-tests/utssdk/TUInt8ClampedArray.uts index 583c1e821fe3c31fd356e7052c34cba701a4bd15..488801960229a2d46552bdc50b9980b5f8d921d3 100644 --- a/uni_modules/uts-tests/utssdk/TUInt8ClampedArray.uts +++ b/uni_modules/uts-tests/utssdk/TUInt8ClampedArray.uts @@ -303,20 +303,6 @@ export class TUint8ClampedArray { expect(sliced[0]).toEqual(42); // #END } - testSome() { - // #TEST Uint8ClampedArray.some - const uint8Clamped = new Uint8ClampedArray([8, 20, 30, 40, 50]); - const positives = new Uint8ClampedArray([10, 20, 30, 40, 50]); - expect(uint8Clamped.some((element : number, index : number, array : Uint8ClampedArray) : boolean => - element < 10 - )).toEqual(true); - - - expect(positives.some((element : number, index : number, array : Uint8ClampedArray) : boolean => - element < 0 - )).toEqual(false); - // #END - } // #endif } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/TUint16Array.uts b/uni_modules/uts-tests/utssdk/TUint16Array.uts index a322a0b3c02c07ab49bb2b556c3a6d2f504be6ac..410140149d81592d1c0b656336eb660266407faf 100644 --- a/uni_modules/uts-tests/utssdk/TUint16Array.uts +++ b/uni_modules/uts-tests/utssdk/TUint16Array.uts @@ -318,21 +318,7 @@ export class TUint16Array { // #END } - testSome() { - // #TEST Uint16Array.some - const uint16 = new Uint16Array([8, 20, 30, 40, 50]); - const positives = new Uint16Array([10, 20, 30, 40, 50]); - expect(uint16.some((element : number, index : number, array : Uint16Array) : boolean => - element < 10 - )).toEqual(true); - - - expect(positives.some((element : number, index : number, array : Uint16Array) : boolean => - element < 0 - )).toEqual(false); - // #END - } // #endif } \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/TUint32Array.uts b/uni_modules/uts-tests/utssdk/TUint32Array.uts index b6c822e6834d354ca2f29310a6c15d5ff5f2cfd0..06840886ec52dc4d760f30391e72bd7b5a77b7dd 100644 --- a/uni_modules/uts-tests/utssdk/TUint32Array.uts +++ b/uni_modules/uts-tests/utssdk/TUint32Array.uts @@ -312,21 +312,6 @@ export class TUint32Array { // #END } - testSome() { - // #TEST Uint32Array.some - const uint32 = new Uint32Array([8, 20, 30, 40, 50]); - const positives = new Uint32Array([10, 20, 30, 40, 50]); - - expect(uint32.some((element : number, index : number, array : Uint32Array) : boolean => - element < 10 - )).toEqual(true); - - - expect(positives.some((element : number, index : number, array : Uint32Array) : boolean => - element < 0 - )).toEqual(false); - // #END - } // #endif } \ No newline at end of file