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
Can you please provide a minimal reprex (reproducible example)? The goal of a reprex is to make it as easy as possible for me to recreate your problem so that I can fix it: please help me help you!
If you've never heard of a reprex before, start by reading "What is a reprex", and follow the advice further down the page. Please make sure your reprex is created with the reprex package as it gives nicely formatted output and avoids a number of common pitfalls.
Error (test-test.R:6:3): Saving/loading json works
Error: Serialization round-trip is not symmetric.
`value`: 0.900000000000001
`roundtrip`: 0.900000000000000
i You may need to consider serialization `style`
Backtrace:
1. testthat::expect_snapshot_value(f(), style = "json2") test-test.R:6:2
2. testthat:::expect_snapshot_helper(...)
3. snapshotter$take_snapshot(val, save = save, load = load, ...)
4. testthat:::check_roundtrip(value, load(save(value)))
Hello,
I'm forced to use the option
serialize
(which is not 100% portable) because of this problem onjson
's:Both uses
jsonlite
library, and uses the default argumentdigits
.This causes the following problem:
This could be fixed using some tolerance, right? :-)
Best regards
The text was updated successfully, but these errors were encountered: