You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
503 B

4 years ago
"use strict";
var toArray = require("../../../array/to-array")
, f = function () { return toArray(arguments); };
module.exports = function (t, a) {
var x, y = {}, z;
a.deep(t.call(f, 0, 1, 2)(3), [], "0 arguments");
x = t.call(f, 5, {});
a(x.length, 5, "Length #1");
z = x(1, 2);
a(z.length, 3, "Length #2");
z = z(3, 4);
a(z.length, 1, "Length #1");
a.deep(z(5, 6), [1, 2, 3, 4, 5], "Many arguments");
a.deep(x(8, 3)(y, 45)("raz", 6), [8, 3, y, 45, "raz"], "Many arguments #2");
};