roundtrip_encoding

Function roundtrip_encoding 

Source
pub fn roundtrip_encoding<T: Serialize + DeserializeOwned + Debug + PartialEq>(
    value: T,
)
Available on crate feature test-util only.
Expand description

Encodes the given value to YAML, then decodes it again, and checks that the resulting value is equal to the given value.