Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Commit

Permalink
Add failing test for roundtrip of IpAddr
Browse files Browse the repository at this point in the history
Issue: #57
  • Loading branch information
RReverser authored and pyfisch committed Jan 25, 2018
1 parent 5cb8615 commit d4c185e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ fn test_ip_addr() {
let vec = to_vec(&addr).unwrap();
println!("{:?}", vec);
assert_eq!(vec.len(), 5);
let test_addr: Ipv4Addr = from_slice(&vec).unwrap();
assert_eq!(addr, test_addr);
}

0 comments on commit d4c185e

Please sign in to comment.