Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f7f18b

Browse files
committed
Increase test coverage
1 parent1f6c79b commit3f7f18b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎test/src/IPAddress/test_operator_comparison6.cpp‎

Lines changed: 7 additions & 0 deletions
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::IPAddressip1(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::IPAddressip1(0x20,0x01,0xd,0xb8,1,2,3,4,5,6,7,8,9,0xa,0xb,0xc);
70+
uint8_tconst 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)

[8]ページ先頭

©2009-2025 Movatter.jp