]> git.r.bdr.sh - rbdr/dotfiles/blob
21404a17a61358e2447ce8c4ed30ad93dc831755
[rbdr/dotfiles] /
1 'use strict';
2
3 module.exports = {
4 __generic: function (t, a) {
5 a(t.call(this, this[1]), true, "Contains");
6 a(t.call(this, {}), false, "Does Not contain");
7 },
8 "": function (t, a) {
9 var o, x = {}, y = {};
10
11 o = [1, 'raz', x];
12
13 a(t.call(o, 1), true, "First");
14 a(t.call(o, '1'), false, "Type coercion");
15 a(t.call(o, 'raz'), true, "Primitive");
16 a(t.call(o, 'foo'), false, "Primitive not found");
17 a(t.call(o, x), true, "Object found");
18 a(t.call(o, y), false, "Object not found");
19 a(t.call(o, 1, 1), false, "Position");
20 }
21 };