Opal-Estate-Pro/node_modules/es5-ext/test/string/#/plain-replace-all.js

11 lines
412 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
"use strict";
module.exports = function (t, a) {
a(t.call("razdwatrzy", "dwa", "olera"), "razoleratrzy", "Basic");
a(t.call("razdwatrzy", "dwa", "ole$&a"), "razole$&atrzy", "Inserts");
a(t.call("razdwa", "ola", "sdfs"), "razdwa", "No replace");
a(t.call("$raz$$dwa$trzy$", "$", "&&"), "&&raz&&&&dwa&&trzy&&", "Multi");
a(t.call("$raz$$dwa$$$$trzy$", "$$", "&"), "$raz&dwa&&trzy$", "Multi many chars");
};