Lines Matching defs:countArgs
7 function countArgs() { return arguments.length; }
14 assertEquals(0, countArgs(...""));
15 assertEquals(4, countArgs(..."test"));
16 assertEquals(4, countArgs(..."tes", ..."t"));
17 assertEquals(4, countArgs("t", ..."es", "t"));
18 assertEquals(4, countArgs("tes", ..."t!!"));
20 assertEquals(1, countArgs(...[1]));
21 assertEquals(2, countArgs(...[1, 2]));
22 assertEquals(3, countArgs(...[1, 2, 3]));
23 assertEquals(4, countArgs(...[1, 2, 3, 4]));
24 assertEquals(5, countArgs(...[1, 2, 3, 4, 5]));
25 assertEquals(6, countArgs(...[1, 2, 3, 4, 5, 6]));
27 assertEquals(1, countArgs(...new Set([1])));
28 assertEquals(2, countArgs(...new Set([1, 2])));
29 assertEquals(3, countArgs(...new Set([1, 2, 3])));
30 assertEquals(4, countArgs(...new Set([1, 2, 3, 4])));
31 assertEquals(5, countArgs(...new Set([1, 2, 3, 4, 5])));
32 assertEquals(6, countArgs(...new Set([1, 2, 3, 4, 5, 6])));
34 assertEquals(3, countArgs(...(function*(){ yield 1; yield 2; yield 3; })()));
82 countArgs: countArgs,
88 countArgs: countArgs,
101 assertEquals(0, O.countArgs(...""));
102 assertEquals(4, O.countArgs(..."test"));
103 assertEquals(4, O.countArgs(..."tes", ..."t"));
104 assertEquals(4, O.countArgs("t", ..."es", "t"));
105 assertEquals(4, O.countArgs("tes", ..."t!!"));
107 assertEquals(1, O.countArgs(...[1]));
108 assertEquals(2, O.countArgs(...[1, 2]));
109 assertEquals(3, O.countArgs(...[1, 2, 3]));
110 assertEquals(4, O.countArgs(...[1, 2, 3, 4]));
111 assertEquals(5, O.countArgs(...[1, 2, 3, 4, 5]));
112 assertEquals(6, O.countArgs(...[1, 2, 3, 4, 5, 6]));
114 assertEquals(1, O.countArgs(...new Set([1])));
115 assertEquals(2, O.countArgs(...new Set([1, 2])));
116 assertEquals(3, O.countArgs(...new Set([1, 2, 3])));
117 assertEquals(4, O.countArgs(...new Set([1, 2, 3, 4])));
118 assertEquals(5, O.countArgs(...new Set([1, 2, 3, 4, 5])));
119 assertEquals(6, O.countArgs(...new Set([1, 2, 3, 4, 5, 6])));
121 assertEquals(3, O.countArgs(
159 function countArgs() { return arguments.length; }
162 assertEquals(0, countArgs(...""));
163 assertEquals(4, countArgs(..."test"));
164 assertEquals(4, countArgs(..."tes", ..."t"));
165 assertEquals(4, countArgs("t", ..."es", "t"));
166 assertEquals(4, countArgs("tes", ..."t!!"));
168 assertEquals(1, countArgs(...[1]));
169 assertEquals(2, countArgs(...[1, 2]));
170 assertEquals(3, countArgs(...[1, 2, 3]));
171 assertEquals(4, countArgs(...[1, 2, 3, 4]));
172 assertEquals(5, countArgs(...[1, 2, 3, 4, 5]));
173 assertEquals(6, countArgs(...[1, 2, 3, 4, 5, 6]));
175 assertEquals(1, countArgs(...new Set([1])));
176 assertEquals(2, countArgs(...new Set([1, 2])));
177 assertEquals(3, countArgs(...new Set([1, 2, 3])));
178 assertEquals(4, countArgs(...new Set([1, 2, 3, 4])));
179 assertEquals(5, countArgs(...new Set([1, 2, 3, 4, 5])));
180 assertEquals(6, countArgs(...new Set([1, 2, 3, 4, 5, 6])));
182 assertEquals(3, countArgs(...(function*(){
234 countArgs: countArgs,
240 countArgs: countArgs,
253 assertEquals(0, O.countArgs(...""));
254 assertEquals(4, O.countArgs(..."test"));
255 assertEquals(4, O.countArgs(..."tes", ..."t"));
256 assertEquals(4, O.countArgs("t", ..."es", "t"));
257 assertEquals(4, O.countArgs("tes", ..."t!!"));
259 assertEquals(1, O.countArgs(...[1]));
260 assertEquals(2, O.countArgs(...[1, 2]));
261 assertEquals(3, O.countArgs(...[1, 2, 3]));
262 assertEquals(4, O.countArgs(...[1, 2, 3, 4]));
263 assertEquals(5, O.countArgs(...[1, 2, 3, 4, 5]));
264 assertEquals(6, O.countArgs(...[1, 2, 3, 4, 5, 6]));
266 assertEquals(1, O.countArgs(...new Set([1])));
267 assertEquals(2, O.countArgs(...new Set([1, 2])));
268 assertEquals(3, O.countArgs(...new Set([1, 2, 3])));
269 assertEquals(4, O.countArgs(...new Set([1, 2, 3, 4])));
270 assertEquals(5, O.countArgs(...new Set([1, 2, 3, 4, 5])));
271 assertEquals(6, O.countArgs(...new Set([1, 2, 3, 4, 5, 6])));
273 assertEquals(3, O.countArgs(...(function*(){