blob: d9c5e9bf3eaa1ca8f357a6a417d30780a5bd4b59 [file] [log] [blame] [edit]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var array = [42, "Hello", 32, "World", -333];
shouldBe(array.join(""), `42Hello32World-333`);
shouldBe(array.join(","), `42,Hello,32,World,-333`);
array.pop();
array.pop();
array.pop();
array.pop();
shouldBe(array.join(""), `42`);
shouldBe(array.join(","), `42`);