We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c45231c commit 204c236Copy full SHA for 204c236
src/libstd/net/addr.rs
@@ -1228,5 +1228,10 @@ mod tests {
1228
assert!(v6_1 < v6_3);
1229
assert!(v4_3 > v4_1);
1230
assert!(v6_3 > v6_1);
1231
+
1232
+ // compare with an inferred right-hand side
1233
+ assert_eq!(v4_1, "224.120.45.1:23456".parse().unwrap());
1234
+ assert_eq!(v6_1, "[2001:db8:f00::1002]:23456".parse().unwrap());
1235
+ assert_eq!(SocketAddr::V4(v4_1), "224.120.45.1:23456".parse().unwrap());
1236
}
1237
0 commit comments