Sha256: 3580d2559f342671a2f5f7bab2d15c10213de27da667c8b79f2e36d9c9ea7c9a

Contents?: true

Size: 707 Bytes

Versions: 46

Compression:

Stored size: 707 Bytes

Contents

"use strict";

var toArray = require("../../../array/to-array");

module.exports = {
	"__generic": function (t, a) {
		a.deep(t.call(this, this, this), toArray(this));
	},
	"": function (t, a) {
		var x = {}, y = {}, p, r;
		a.deep(t.call([], [2, 3, 4]), [], "Empty #1");
		a.deep(t.call([2, 3, 4], []), [], "Empty #2");
		a.deep(t.call([2, 3, x], [y, 5, 7]), [], "Different");
		p = t.call([3, 5, "raz", {}, "dwa", x], [1, 3, "raz", "dwa", "trzy", x, {}],
			[3, "raz", x, 65]);
		r = [3, "raz", x];
		p.sort();
		r.sort();
		a.deep(p, r, "Same parts");
		a.deep(t.call(r, r), r, "Same");
		a.deep(t.call([1, 2, x, 4, 5, y, 7], [7, y, 5, 4, x, 2, 1]),
			[1, 2, x, 4, 5, y, 7], "Long reverse same");
	}
};

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
govuk_publishing_components-18.0.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.21.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.20.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.19.1 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.19.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.18.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.17.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.16.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.15.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.14.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.13.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.12.2 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.12.1 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.12.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.11.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.10.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.9.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.8.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.7.0 node_modules/es5-ext/test/array/#/intersection.js
govuk_publishing_components-17.6.1 node_modules/es5-ext/test/array/#/intersection.js