#include "jsongen.hpp" int main() { std::mt19937 rand( 0 ); for ( int i = 0; i < 20; ++i ) { CLEAR(); gen_t gen( i ); gen.max_size = vg_select( 1024 * 1024, 16 * 1024 ); gen.max_depth = 500; gen.max_length = 10000; gen.value(); __trace( "trace: first 960 bytes of a " + std::to_string( gen.str.size() ) + "-byte string (there are no line breaks in the string):" ); for ( int i = 0; i < 12; ++i ) __trace( "trace: " + gen.str.substr( i * 80, 80 ) ); json_parse( gen.str ); } }