blob: 62758a3e63c8ff4e406c68441d4e4b37ff763706 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var s = 'xxxxxxxxxxxxxxAxxxxxxxxxxxxxxxxxxxxA–';
var result = s.replace(/A/g, 'b');
shouldBe(result, 'xxxxxxxxxxxxxxbxxxxxxxxxxxxxxxxxxxxb–');