tests: add test for serializing tripcodes

main
_ 2021-04-27 14:36:05 -05:00
parent 8f334f57a3
commit 7c9238527f
1 changed files with 5 additions and 0 deletions

View File

@ -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]