@Test public void randomizedTest() { AListNoResizing correct = new AListNoResizing<>(); BuggyAList broken = new BuggyAList<>(); int N = 500; for (int i = 0; i < N; i += 1) { int operationNumber = StdRandom.uniform(0, 4); if (operationNumber == 0) { // addLast int randVal = StdRandom.uniform(0, 100); correct.addLast(randVal); broken.addLast(randVal); System.out.println("addLast(" + randVal + ")"); } else if (operationNumber == 1) { ... } }