You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Michael Martin-Smucker edited this page Jun 7, 2019
·
1 revision
We have a very large JSON array in ./test/utils, used to ensure stack safety. For future reference, this file was generated using this script (run from the project root):
/* gen.js (run as `node gen.js`) */constfs=require("fs");vararr=[];for(leti=0;i<20000;i++){arr.push({x: Math.floor(Math.random()*100),y: Math.floor(Math.random()*10),});}fs.writeFileSync("./test/utils/BigJson.json",JSON.stringify(arr));