diff options
Diffstat (limited to 'Tests/AK/TestSpan.cpp')
-rw-r--r-- | Tests/AK/TestSpan.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/AK/TestSpan.cpp b/Tests/AK/TestSpan.cpp index c34e02b4bb..7cac637cc9 100644 --- a/Tests/AK/TestSpan.cpp +++ b/Tests/AK/TestSpan.cpp @@ -115,23 +115,23 @@ TEST_CASE(span_from_void_pointer) { int value = 0; [[maybe_unused]] Bytes bytes0 { reinterpret_cast<void*>(value), 4 }; - [[maybe_unused]] ReadonlyBytes bytes1 { reinterpret_cast<const void*>(value), 4 }; + [[maybe_unused]] ReadonlyBytes bytes1 { reinterpret_cast<void const*>(value), 4 }; } TEST_CASE(span_from_c_string) { - const char* str = "Serenity"; + char const* str = "Serenity"; [[maybe_unused]] ReadonlyBytes bytes { str, strlen(str) }; } TEST_CASE(starts_with) { - const char* str = "HeyFriends!"; + char const* str = "HeyFriends!"; ReadonlyBytes bytes { str, strlen(str) }; - const char* str_hey = "Hey"; + char const* str_hey = "Hey"; ReadonlyBytes hey_bytes { str_hey, strlen(str_hey) }; EXPECT(bytes.starts_with(hey_bytes)); - const char* str_nah = "Nah"; + char const* str_nah = "Nah"; ReadonlyBytes nah_bytes { str_nah, strlen(str_nah) }; EXPECT(!bytes.starts_with(nah_bytes)); |