mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Make tests compilable with the serenity target toolchain
This commit is contained in:
parent
838390171c
commit
c7568943d9
Notes:
sideshowbarker
2024-07-19 06:55:53 +09:00
Author: https://github.com/lnzero1dev Commit: https://github.com/SerenityOS/serenity/commit/c7568943d91 Pull-request: https://github.com/SerenityOS/serenity/pull/2133
3 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <AK/TestSuite.h>
|
||||
|
||||
#include <AK/BinarySearch.h>
|
||||
#include <cstring>
|
||||
|
||||
TEST_CASE(vector_ints)
|
||||
{
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <AK/FlyString.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <cstring>
|
||||
|
||||
TEST_CASE(construct_empty)
|
||||
{
|
||||
|
|
|
@ -105,7 +105,7 @@ TEST_CASE(convert_to_uint)
|
|||
AK::StringUtils::convert_to_uint("-1", ok);
|
||||
EXPECT(!ok);
|
||||
|
||||
uint actual = AK::StringUtils::convert_to_uint("0", ok);
|
||||
unsigned actual = AK::StringUtils::convert_to_uint("0", ok);
|
||||
EXPECT(ok && actual == 0u);
|
||||
|
||||
actual = AK::StringUtils::convert_to_uint("1", ok);
|
||||
|
|
Loading…
Reference in a new issue