]> 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/#/separate.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 / # / separate.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         var x = [], y = {}, z = {};
5         a.deep(t.call(x, y), [], "Empty");
6         a.not(t.call(x), x, "Returns copy");
7         a.deep(t.call([1], y), [1], "One");
8         a.deep(t.call([1, 'raz'], y), [1, y, 'raz'], "One");
9         a.deep(t.call([1, 'raz', x], y), [1, y, 'raz', y, x], "More");
10         x = new Array(1000);
11         x[23] = 2;
12         x[3453] = 'raz';
13         x[500] = z;
14         a.deep(t.call(x, y), [2, y, z, y, 'raz'], "Sparse");
15 };