fast-check maxDepth testing
const fc = require('fast-check')
JSON.stringify(
fc.sample(fc.json({maxDepth: 10, depthFactor: 10}),{seed:1})
).length
JSON.stringify(
fc.sample(fc.json({maxDepth: 10, depthFactor: 1}),{seed:1})
).length
JSON.stringify(
fc.sample(fc.json({maxDepth: 10000, depthFactor: .0001}),{seed:1})
).length
JSON.stringify(
fc.sample(fc.json({maxDepth: 100000000, depthFactor: .000001}),{seed:1})
).length
no comments