Macro minecraft_json::assert_equiv_pretty_protected[][src]

macro_rules! assert_equiv_pretty_protected {
    ($lhs: expr, $rhs: expr) => { ... };
}
Expand description

Assert that a JSON string and some data is equivalent.

This version protects against arbitrary_precision by going via serde_json::Value. i.e. this macro asserts that (a) serde_json::from_value after serde_json::from_str and (b) serde_json::to_string_pretty converts them back and forth.