Skip to content

Commit 3f7f18b

Browse files
committed
Increase test coverage
1 parent 1f6c79b commit 3f7f18b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: test/src/IPAddress/test_operator_comparison6.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,10 @@ TEST_CASE ("Testing IPv4 equivalent compatible address vs IPv6 localhost", "[IPA
6363
arduino::IPAddress ip1(0, 0, 0, 1), ip2(0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,1);
6464
REQUIRE((ip1 == ip2) == false);
6565
}
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

Comments
 (0)