Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

fast-check maxDepth testing

node v14.20.1
version: 1.0.0
endpointsharetweet
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
Loading…

no comments

    sign in to comment