mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
node: More work on encoding
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -421,6 +421,14 @@ mod tests {
|
||||
quickcheck::TestResult::passed()
|
||||
}
|
||||
|
||||
#[quickcheck]
|
||||
fn prop_vec(input: Vec<String>) {
|
||||
assert_eq!(
|
||||
deserialize::<Vec<String>>(&serialize(&input.as_slice())).unwrap(),
|
||||
input
|
||||
);
|
||||
}
|
||||
|
||||
#[quickcheck]
|
||||
fn prop_pubkey(input: PublicKey) {
|
||||
assert_eq!(deserialize::<PublicKey>(&serialize(&input)).unwrap(), input);
|
||||
|
||||
Reference in New Issue
Block a user