Lines Matching refs:arr1
32 var arr1 = new ConsArray(); variable
33 assertTrue(arr1.atEnd());
35 arr1.concat([]);
36 assertTrue(arr1.atEnd());
38 arr1.concat([1]);
39 assertFalse(arr1.atEnd());
40 assertEquals(1, arr1.next());
41 assertTrue(arr1.atEnd());
43 arr1.concat([2, 3, 4]);
44 arr1.concat([5]);
45 arr1.concat([]);
46 arr1.concat([6, 7]);
48 assertFalse(arr1.atEnd());
49 assertEquals(2, arr1.next());
50 assertFalse(arr1.atEnd());
51 assertEquals(3, arr1.next());
52 assertFalse(arr1.atEnd());
53 assertEquals(4, arr1.next());
54 assertFalse(arr1.atEnd());
55 assertEquals(5, arr1.next());
56 assertFalse(arr1.atEnd());
57 assertEquals(6, arr1.next());
58 assertFalse(arr1.atEnd());
59 assertEquals(7, arr1.next());
60 assertTrue(arr1.atEnd());