We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6c79b commit 3f7f18bCopy full SHA for 3f7f18b
1 file changed
test/src/IPAddress/test_operator_comparison6.cpp
@@ -63,3 +63,10 @@ TEST_CASE ("Testing IPv4 equivalent compatible address vs IPv6 localhost", "[IPA
63
arduino::IPAddress ip1(0, 0, 0, 1), ip2(0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,1);
64
REQUIRE((ip1 == ip2) == false);
65
}
66
+
67
+TEST_CASE ("Testing IPv6 never matches as raw byte sequence assumed to be length 4", "[IPAddress6-Operator-==-06]")
68
+{
69
+ arduino::IPAddress ip1(0x20,0x01, 0xd,0xb8, 1,2, 3,4, 5,6, 7,8, 9,0xa, 0xb,0xc);
70
+ uint8_t const ip2[] = {0x20,0x01, 0xd,0xb8, 1,2, 3,4, 5,6, 7,8, 9,0xa, 0xb,0xc};
71
+ REQUIRE((ip1 == ip2) == false);
72
+}
0 commit comments