✅ tests: add test for serializing tripcodes
parent
8f334f57a3
commit
7c9238527f
|
@ -185,6 +185,11 @@ mod tests {
|
|||
let j = json! ({
|
||||
"tripcode": tripcode,
|
||||
});
|
||||
|
||||
let s = serde_json::to_string (&j).unwrap ();
|
||||
|
||||
let j = serde_json::from_str::<serde_json::Value> (&s).unwrap ();
|
||||
assert_eq! (j, json! ({"tripcode": tripcode}));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in New Issue