From 052368925265e2b5d1746de4c2b524a9ce9b318e Mon Sep 17 00:00:00 2001 From: zjx Date: Tue, 19 Jul 2022 17:11:57 +0800 Subject: [PATCH] Amend ArrayList removeByRange Description Modify removebyrange in ArrayList Related issue #I5HTC4:Modify removebyrange in ArrayList Signed-off-by: zjx --- .../src/main/js/test/ArrayList.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compileruntime/containerLine_lib_standard/src/main/js/test/ArrayList.test.js b/compileruntime/containerLine_lib_standard/src/main/js/test/ArrayList.test.js index 976b59fec..6ad5b2590 100644 --- a/compileruntime/containerLine_lib_standard/src/main/js/test/ArrayList.test.js +++ b/compileruntime/containerLine_lib_standard/src/main/js/test/ArrayList.test.js @@ -1058,10 +1058,8 @@ describe("ArraylistTest", function () { arrayList.add("b"); arrayList.add("c"); arrayList.add(1); - arrayList.removeByRange(0, 8); + arrayList.removeByRange(0, 9); let res = arrayList.length; - let res1 = arrayList.getLastIndexOf(1); - expect(res).assertEqual(1); - expect(res1).assertEqual(0); + expect(res).assertEqual(0); }); }); -- GitLab