diff options
author | Nico Weber <thakis@chromium.org> | 2020-08-05 16:28:19 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-05 22:33:42 +0200 |
commit | 19ac1f6368c91cc00a68717001ea4eae65567a47 (patch) | |
tree | 65e4e9a85f0a39085c80bf954d5889e396e0ee4e /AK/Tests/TestUtf8.cpp | |
parent | 9664bac281c72822da59e7f83af65d4f411d10a5 (diff) | |
download | serenity-19ac1f6368c91cc00a68717001ea4eae65567a47.zip |
Revert "Unicode: s/codepoint/code_point/g"
This reverts commit ea9ac3155d1774f13ac4e9a96605c0e85a8f299e.
It replaced "codepoint" with "code_points", not "code_point".
Diffstat (limited to 'AK/Tests/TestUtf8.cpp')
-rw-r--r-- | AK/Tests/TestUtf8.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/AK/Tests/TestUtf8.cpp b/AK/Tests/TestUtf8.cpp index f9103013f4..d61209e63b 100644 --- a/AK/Tests/TestUtf8.cpp +++ b/AK/Tests/TestUtf8.cpp @@ -37,9 +37,9 @@ TEST_CASE(decode_ascii) size_t expected_size = sizeof(expected) / sizeof(expected[0]); size_t i = 0; - for (u32 code_points : utf8) { + for (u32 codepoint : utf8) { ASSERT(i < expected_size); - EXPECT_EQ(code_points, expected[i]); + EXPECT_EQ(codepoint, expected[i]); i++; } EXPECT_EQ(i, expected_size); @@ -56,9 +56,9 @@ TEST_CASE(decode_utf8) size_t expected_size = sizeof(expected) / sizeof(expected[0]); size_t i = 0; - for (u32 code_points : utf8) { + for (u32 codepoint : utf8) { ASSERT(i < expected_size); - EXPECT_EQ(code_points, expected[i]); + EXPECT_EQ(codepoint, expected[i]); i++; } EXPECT_EQ(i, expected_size); |