blob: f3e77f03f7a45ceda510a65f14fcb10221449887 [file] [log] [blame] [edit]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var string = '[{},{},{},{}]';
shouldBe(JSON.stringify(JSON.parse(string)), `[{},{},{},{}]`);
var string = '[[],[],[],[]]';
shouldBe(JSON.stringify(JSON.parse(string)), `[[],[],[],[]]`);