From fb4743003020185fe4c8ceb07599524a07719adc Mon Sep 17 00:00:00 2001 From: mahaifeng Date: Thu, 25 Jul 2024 11:41:02 +0800 Subject: [PATCH] =?UTF-8?q?[array-buffer]copyewith=E7=9A=84=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/TFloat64Array.uts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/TFloat64Array.uts b/uni_modules/uts-tests/utssdk/TFloat64Array.uts index e85abf3..08f6078 100644 --- a/uni_modules/uts-tests/utssdk/TFloat64Array.uts +++ b/uni_modules/uts-tests/utssdk/TFloat64Array.uts @@ -76,19 +76,6 @@ export class TFloat64Array { float64.set([1, 2, 3], 1); float64.copyWithin(3, 0, 3); expect(float64.toString()).toEqual("0,1,2,0,1,2,0,0"); - - let initialLargeArray : Array = new Array(10000, 0); - for (let i = 0; i < 5000; ++i) { - initialLargeArray[i] = i; - } - let initialLargeFloat64Array = new Float64Array(initialLargeArray); - let largeFloat64Array : Float64Array = new Float64Array(initialLargeFloat64Array); - largeFloat64Array.copyWithin(5000, 0); - for (let i = 0; i < 5000; ++i) { - if (largeFloat64Array[i + 5000] !== i) { - expect(true).toEqual(false); - } - } // #END } -- GitLab