146147148149150151152153154155156
list.add(4); list.add(3); list.add(5); list.add(1); assertEquals(asList(1, 3, 4, 5), list.sort()); list.add(0); assertEquals(asList(1, 3, 4, 5, 0), list); assertEquals(asList(0, 1, 3, 4, 5), list.sort());
151152153154155156157158
assertEquals(asList(1, 3, 4, 5), list.sort()); list.add(0); assertEquals(asList(1, 3, 4, 5, 0), list); assertEquals(asList(0, 1, 3, 4, 5), list.sort()); } }