Closed pavelxdd closed 2 years ago
As mentioned in #79, yyjson_val_write_opts and yyjson_mut_val_write_opts should include
yyjson_val_write_opts
yyjson_mut_val_write_opts
#if YYJSON_DISABLE_NON_STANDARD flg &= ~YYJSON_WRITE_ALLOW_INF_AND_NAN; #endif
like it is done in reader functions.
Currenly just adding this block is not enough, the tests don't check the YYJSON_DISABLE_NON_STANDARD before testing writer with YYJSON_WRITE_ALLOW_INF_AND_NAN flag.
YYJSON_DISABLE_NON_STANDARD
YYJSON_WRITE_ALLOW_INF_AND_NAN
Fixed.
As mentioned in #79,
yyjson_val_write_opts
andyyjson_mut_val_write_opts
should includelike it is done in reader functions.
Currenly just adding this block is not enough, the tests don't check the
YYJSON_DISABLE_NON_STANDARD
before testing writer withYYJSON_WRITE_ALLOW_INF_AND_NAN
flag.