@Test public void testStep() { MutableArray<Integer> list = MutableArrayFromVarargs.create(1, 2, 3, 2, 1); boolean success = step(list); assertTrue(success); assertEquals("(1,3,1,2,2)", list.toString()); }
@Test public void testCannotStep() { MutableArray<Integer> list = MutableArrayFromVarargs.create(3, 2, 1); boolean success = step(list); assertFalse(success); }