Lines Matching refs:assertEquals
28 function assertEquals(a, b) { function
32 assertEquals(MyArray, new MyArray().map(()=>{}).constructor);
33 assertEquals(MyArray, new MyArray().filter(()=>{}).constructor);
34 assertEquals(MyArray, new MyArray().slice().constructor);
35 assertEquals(MyArray, new MyArray().splice().constructor);
36 assertEquals(MyArray, new MyArray().concat([1]).constructor);
37 assertEquals(1, new MyArray().concat([1])[0]);
45 assertEquals(MyArray, new MyOtherArray().map(()=>{}).constructor);
46 assertEquals(MyArray, new MyOtherArray().filter(()=>{}).constructor);
47 assertEquals(MyArray, new MyOtherArray().slice().constructor);
48 assertEquals(MyArray, new MyOtherArray().splice().constructor);
49 assertEquals(MyArray, new MyOtherArray().concat().constructor);
59 assertEquals(MyObject,
61 assertEquals(MyObject,
63 assertEquals(MyObject,
65 assertEquals(MyObject,
67 assertEquals(MyObject,
70 assertEquals(undefined,
72 assertEquals(undefined,
75 assertEquals(0, Array.prototype.slice.call(new MyNonArray()).length);
76 assertEquals(0, Array.prototype.splice.call(new MyNonArray()).length);
77 assertEquals(1, Array.prototype.concat.call(new MyNonArray(), ()=>{}).length);
84 assertEquals(Array, new MyDefaultArray().map(()=>{}).constructor);
87 assertEquals(MyOtherDefaultArray,
90 assertEquals(Array, new MyOtherDefaultArray().map(()=>{}).constructor);
91 assertEquals(Array, new MyOtherDefaultArray().concat().constructor);
147 assertEquals(expected[i], value[i]);
153 assertEquals(MyObservedArray,
155 assertEquals(1, count);
160 assertEquals(MyObservedArray,
162 assertEquals(1, count);
167 assertEquals(MyObservedArray,
169 assertEquals(1, count);
174 assertEquals(MyObservedArray,
176 assertEquals(1, count);
181 assertEquals(MyObservedArray,
183 assertEquals(1, count);