]> 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/object/is-copy.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 / object / is-copy.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 3 }), true, "Same");
5         a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 4 }), false,
6                 "Different property value");
7         a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2 }), false,
8                 "Property only in source");
9         a(t({ 1: 1, 2: 2 }, { 1: 1, 2: 2, 3: 4 }), false,
10                 "Property only in target");
11
12         a(t("raz", "dwa"), false, "String: diff");
13         a(t("raz", "raz"), true, "String: same");
14         a(t("32", 32), false, "String & Number");
15
16         a(t([1, 'raz', true], [1, 'raz', true]), true, "Array: same");
17         a(t([1, 'raz', undefined], [1, 'raz']), false, "Array: diff");
18 };