Skip to content

Commit 606d3a8

Browse files
committed
Note on IPv4 tests to int32_t
1 parent deabbb8 commit 606d3a8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ TEST_CASE ("Testing IPAddress::operator = (uint32_t a)", "[IPAddress-Operator-=-
2929
uint32_t const 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
}

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

+1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ TEST_CASE ("Testing IPAddress::operator uint32_t() const", "[IPAddress-Operator-
1919
arduino::IPAddress ip(129,168,1,2);
2020
uint32_t const val_expected = ip;
2121
uint32_t const 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)