Sha256: c60efe14320b6dc8fdc2d759d9c2473c492943d68d55bb5136c0ce3c2becef45

Contents?: true

Size: 516 Bytes

Versions: 47

Compression:

Stored size: 516 Bytes

Contents

"use strict";

module.exports = function (t, a) {
	a(t.call("raz", ""), true, "Empty");
	a(t.call("", ""), true, "Both Empty");
	a(t.call("raz", "raz"), true, "Same");
	a(t.call("razdwa", "raz"), true, "Starts with");
	a(t.call("razdwa", "dwa"), true, "Ends with");
	a(t.call("razdwa", "zdw"), true, "In middle");
	a(t.call("", "raz"), false, "Something in empty");
	a(t.call("az", "raz"), false, "Longer");
	a(t.call("azasdfasdf", "azff"), false, "Not found");
	a(t.call("razdwa", "raz", 1), false, "Position");
};

Version data entries

47 entries across 47 versions & 3 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-18.0.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.21.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.20.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.19.1 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.19.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.18.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.17.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.16.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.15.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.14.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.13.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.12.2 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.12.1 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.12.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.11.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.10.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.9.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.8.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-17.7.0 node_modules/es5-ext/test/string/#/contains/shim.js