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

Commit606d3a8

Browse files
committed
Note on IPv4 tests to int32_t
1 parentdeabbb8 commit606d3a8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎test/src/IPAddress/test_operator_assignment.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ TEST_CASE ("Testing IPAddress::operator = (uint32_t a)", "[IPAddress-Operator-=-
2929
uint32_tconst ip2 =192 | (168 <<8) | (1 <<16) | (2 <<24);
3030

3131
ip1 = ip2;
32+
// NOTE: Only correct on little-endian systems
3233
REQUIRE(ip1 ==arduino::IPAddress(192,168,1,2));
3334
}

‎test/src/IPAddress/test_operator_parentheses.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ TEST_CASE ("Testing IPAddress::operator uint32_t() const", "[IPAddress-Operator-
1919
arduino::IPAddressip(129,168,1,2);
2020
uint32_tconst val_expected = ip;
2121
uint32_tconst val_actual = (129 | (168 <<8) | (1 <<16) | (2 <<24));
22+
// NOTE: Only correct on little-endian systems
2223
REQUIRE(val_expected == val_actual);
2324
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp