mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
Tested AlignedU64
This commit is contained in:
parent
367e160075
commit
9daf47d117
@ -10,6 +10,15 @@ pub async fn test_round_trip_peerinfo() {
|
|||||||
assert_eq!(SERIALIZED_PEERINFO, back);
|
assert_eq!(SERIALIZED_PEERINFO, back);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub async fn test_alignedu64() {
|
||||||
|
let a = AlignedU64::new(0x0123456789abcdef);
|
||||||
|
|
||||||
|
let b = serialize_json(a);
|
||||||
|
let c = deserialize_json(&b).unwrap();
|
||||||
|
|
||||||
|
assert_ne!(a, c);
|
||||||
|
}
|
||||||
|
|
||||||
pub async fn test_all() {
|
pub async fn test_all() {
|
||||||
test_round_trip_peerinfo().await;
|
test_round_trip_peerinfo().await;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user