Add test for deserializing named units
This commit is contained in:
parent
6e51195930
commit
21e6d3163f
@ -27,6 +27,7 @@ trait Trait {
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive_serialize]
|
||||
#[derive_deserialize]
|
||||
struct NamedUnit;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
@ -78,13 +79,11 @@ fn test_named_unit() {
|
||||
Value::Null
|
||||
);
|
||||
|
||||
/*
|
||||
let v = json::from_str("null").unwrap();
|
||||
assert_eq!(v, named_unit);
|
||||
|
||||
let v = json::from_value(Value::Null).unwrap();
|
||||
assert_eq!(v, named_unit);
|
||||
*/
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user