mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-16 08:48:51 +00:00
Add two tests for send and sync
To prevent future regressions as the library evolves
This commit is contained in:
12
src/ipv6.rs
12
src/ipv6.rs
@ -389,4 +389,16 @@ mod test {
|
||||
let expected = Ipv6Network::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 128).unwrap();
|
||||
assert_eq!(net, expected);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_send() {
|
||||
fn assert_send<T: Send>() {}
|
||||
assert_send::<Ipv6Network>();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_sync() {
|
||||
fn assert_sync<T: Sync>() {}
|
||||
assert_sync::<Ipv6Network>();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user