Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirShaleev committed Apr 27, 2024
1 parent 81cdaca commit d1fb274
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/ip-address-tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,6 @@ TEST(ip_address, to_u8string) {
const char8_t* expected_full_2 = u8"fe80:0000:0000:0000:01ff:fe23:4567:890a%eth2";
const char8_t* expected_compact_2 = u8"fe80:0:0:0:1ff:fe23:4567:890a%eth2";
const char8_t* expected_compressed_2 = u8"fe80::1ff:fe23:4567:890a%eth2";
const char8_t* expected_compressed_upper_2 = u8"FE80::1FF:FE23:4567:890A%eth2";

ASSERT_EQ(ip1.to_u8string(format::full), expected_address);
ASSERT_EQ(ip1.to_u8string(format::compact), expected_address);
Expand Down
1 change: 0 additions & 1 deletion tests/ip-network-tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ TEST(ip_network, to_u8string) {
const char8_t* expected_full_2 = u8"fe80:0000:0000:0000:01ff:fe23:4567:890a%eth2/128";
const char8_t* expected_compact_2 = u8"fe80:0:0:0:1ff:fe23:4567:890a%eth2/128";
const char8_t* expected_compressed_2 = u8"fe80::1ff:fe23:4567:890a%eth2/128";
const char8_t* expected_compressed_upper_2 = u8"FE80::1FF:FE23:4567:890A%eth2/128";

ASSERT_EQ(net1.to_u8string(format::full), expected_address);
ASSERT_EQ(net1.to_u8string(format::compact), expected_address);
Expand Down
4 changes: 2 additions & 2 deletions tests/unicode-tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ template <typename T, size_t N>
void test_exception(const T (&str)[N]) {
const T* it = str;
const T* begin = it;
const T* end = it + sizeof(str);
const T* end = it + sizeof(str) / sizeof(str[0]);

char symbol = '\0';

Expand Down Expand Up @@ -199,7 +199,7 @@ TEST(char_reader, Char) {
constexpr char str[] = "abc123";

const char* it = str;
const char* end = it + sizeof(str);
const char* end = it + sizeof(str) / sizeof(str[0]);

auto code = error_code::no_error;
char symbol = '\0';
Expand Down

0 comments on commit d1fb274

Please sign in to comment.