diff options
Diffstat (limited to 'Tests/AK/TestIPv4Address.cpp')
-rw-r--r-- | Tests/AK/TestIPv4Address.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Tests/AK/TestIPv4Address.cpp b/Tests/AK/TestIPv4Address.cpp index b8f07d1e3c..4f3055ebd4 100644 --- a/Tests/AK/TestIPv4Address.cpp +++ b/Tests/AK/TestIPv4Address.cpp @@ -66,7 +66,7 @@ TEST_CASE(should_convert_to_string) TEST_CASE(should_make_ipv4_address_from_string) { - const auto addr = IPv4Address::from_string("192.168.0.1"); + auto const addr = IPv4Address::from_string("192.168.0.1"); EXPECT(addr.has_value()); EXPECT_EQ(192, addr.value()[0]); @@ -77,21 +77,21 @@ TEST_CASE(should_make_ipv4_address_from_string) TEST_CASE(should_make_empty_optional_from_bad_string) { - const auto addr = IPv4Address::from_string("bad string"); + auto const addr = IPv4Address::from_string("bad string"); EXPECT(!addr.has_value()); } TEST_CASE(should_make_empty_optional_from_out_of_range_values) { - const auto addr = IPv4Address::from_string("192.168.0.500"); + auto const addr = IPv4Address::from_string("192.168.0.500"); EXPECT(!addr.has_value()); } TEST_CASE(should_fill_d_octet_from_1_part) { - const auto addr = IPv4Address::from_string("1"); + auto const addr = IPv4Address::from_string("1"); EXPECT(addr.has_value()); EXPECT_EQ(0, addr.value()[0]); @@ -102,7 +102,7 @@ TEST_CASE(should_fill_d_octet_from_1_part) TEST_CASE(should_fill_a_and_d_octets_from_2_parts) { - const auto addr = IPv4Address::from_string("192.1"); + auto const addr = IPv4Address::from_string("192.1"); EXPECT(addr.has_value()); EXPECT_EQ(192, addr.value()[0]); @@ -113,7 +113,7 @@ TEST_CASE(should_fill_a_and_d_octets_from_2_parts) TEST_CASE(should_fill_a_b_d_octets_from_3_parts) { - const auto addr = IPv4Address::from_string("192.168.1"); + auto const addr = IPv4Address::from_string("192.168.1"); EXPECT(addr.has_value()); EXPECT_EQ(192, addr.value()[0]); |