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 52076df774e461e5eea90b57c3f5281f58702003..12e5df40ebae05101e6d4052d119f4fd507d9dee 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 @@ -533,8 +533,8 @@ describe("ArraylistTest", function () { 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); + expect(res1).assertEqual(-1); }); it("SR000GGR44_testSubArrayList040", 0, function () { let arrayList = new ArrayList(); @@ -702,4 +702,20 @@ describe("ArraylistTest", function () { expect(arr[i]).assertEqual(a[i]); } }); + it("SR000GGR44_testRemoveByRange052", 0, function () { + let arrayList = new ArrayList(); + arrayList.add("四"); + arrayList.add("三"); + arrayList.add(1); + arrayList.add("a"); + arrayList.add(1); + arrayList.add("b"); + arrayList.add("c"); + arrayList.add(1); + arrayList.removeByRange(0, 8); + let res = arrayList.length; + let res1 = arrayList.getLastIndexOf(1); + expect(res).assertEqual(1); + expect(res1).assertEqual(0); + }); });