Debian Codegraph @

test/string/#/contains/shim.js

raw
1 "use strict";
2
3 module.exports = function (t, a) {
4 a(t.call("raz", ""), true, "Empty");
5 a(t.call("", ""), true, "Both Empty");
6 a(t.call("raz", "raz"), true, "Same");
7 a(t.call("razdwa", "raz"), true, "Starts with");
8 a(t.call("razdwa", "dwa"), true, "Ends with");
9 a(t.call("razdwa", "zdw"), true, "In middle");
10 a(t.call("", "raz"), false, "Something in empty");
11 a(t.call("az", "raz"), false, "Longer");
12 a(t.call("azasdfasdf", "azff"), false, "Not found");
13 a(t.call("razdwa", "raz", 1), false, "Position");
14 };