mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
AK+Tests: Avoid implicitly copying ByteBuffer
This commit is contained in:
parent
70660a79af
commit
768b70cc4d
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ TEST_CASE(test_decode)
|
|||
auto decode_equal = [&](const char* input, const char* expected) {
|
||||
auto decoded_option = decode_base64(StringView(input));
|
||||
EXPECT(decoded_option.has_value());
|
||||
auto decoded = decoded_option.value();
|
||||
auto decoded = decoded_option.release_value();
|
||||
EXPECT(String::copy(decoded) == String(expected));
|
||||
EXPECT(StringView(expected).length() <= calculate_base64_decoded_length(StringView(input).bytes()));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue