mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
AK: Remove try_
prefix from FixedArray creation functions
This commit is contained in:
parent
909c2a73c4
commit
9c08bb9555
Notes:
sideshowbarker
2024-07-17 01:02:18 +09:00
Author: https://github.com/linusg
Commit: 9c08bb9555
Pull-request: https://github.com/SerenityOS/serenity/pull/17222
26 changed files with 57 additions and 59 deletions
|
@ -61,15 +61,15 @@ TEST_CASE(fixed_array)
|
|||
EXPECT(chunks.is_empty());
|
||||
chunks.append({});
|
||||
EXPECT(chunks.is_empty());
|
||||
chunks.append(MUST(FixedArray<size_t>::try_create({ 0, 1 })));
|
||||
chunks.append(MUST(FixedArray<size_t>::create({ 0, 1 })));
|
||||
EXPECT(!chunks.is_empty());
|
||||
chunks.append({});
|
||||
chunks.append(MUST(FixedArray<size_t>::try_create(3)));
|
||||
chunks.append(MUST(FixedArray<size_t>::create(3)));
|
||||
chunks.last_chunk()[0] = 2;
|
||||
chunks.last_chunk()[1] = 3;
|
||||
chunks.last_chunk()[2] = 4;
|
||||
chunks.append({});
|
||||
chunks.append(MUST(FixedArray<size_t>::try_create(1)));
|
||||
chunks.append(MUST(FixedArray<size_t>::create(1)));
|
||||
chunks.last_chunk()[0] = 5;
|
||||
|
||||
for (size_t i = 0; i < 6u; ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue