mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-14 10:49:32 -04:00
Tested AlignedU64
This commit is contained in:
parent
367e160075
commit
9daf47d117
1 changed files with 9 additions and 0 deletions
|
@ -10,6 +10,15 @@ pub async fn test_round_trip_peerinfo() {
|
|||
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() {
|
||||
test_round_trip_peerinfo().await;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue