]> git.r.bdr.sh - rbdr/dotfiles/blob
4985b5eaee9769b78f2dacc4809ca42bc5399e8f
[rbdr/dotfiles] /
1 'use strict';
2
3 module.exports = function (t, a) {
4 var o = [1, 2, 3];
5 a(t(o), o, "Array");
6 a.deep(t('12r3v'), ['1', '2', 'r', '3', 'v'], "String");
7 a.deep(t((function () { return arguments; }(3, o, 'raz'))),
8 [3, o, 'raz'], "Arguments");
9 a.deep(t((function () { return arguments; }(3))), [3],
10 "Arguments with one numeric value");
11
12 a.deep(t({ 0: 'raz', 1: 'dwa', length: 2 }), ['raz', 'dwa'], "Other");
13 };