示例#1
0
 @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());
 }
示例#2
0
 @Test
 public void testCannotStep() {
   MutableArray<Integer> list = MutableArrayFromVarargs.create(3, 2, 1);
   boolean success = step(list);
   assertFalse(success);
 }