]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/test/array/#/contains.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / test / array / # / contains.js
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 };