mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 20:58:16 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
Notes:
sideshowbarker
2024-07-17 16:21:09 +09:00
Author: https://github.com/IdanHo
Commit: 086969277e
Pull-request: https://github.com/SerenityOS/serenity/pull/12321
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo ✅
1665 changed files with 8479 additions and 8479 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue