]> git.r.bdr.sh - rbdr/dotfiles/blob
18fb0389e79b26c899a3396bdfaf268bbf4fd96a
[rbdr/dotfiles] /
1 'use strict';
2
3 var toArray = require('../../../array/to-array')
4
5 , f = function () { return toArray(arguments); };
6
7 module.exports = function (t, a) {
8 var x, y = {}, z;
9 a.deep(t.call(f, 0, 1, 2)(3), [], "0 arguments");
10 x = t.call(f, 5, {});
11 a(x.length, 5, "Length #1");
12 z = x(1, 2);
13 a(z.length, 3, "Length #2");
14 z = z(3, 4);
15 a(z.length, 1, "Length #1");
16 a.deep(z(5, 6), [1, 2, 3, 4, 5], "Many arguments");
17 a.deep(x(8, 3)(y, 45)('raz', 6), [8, 3, y, 45, 'raz'], "Many arguments #2");
18 };