AK: Make tests compilable with the serenity target toolchain

This commit is contained in:
Emanuel Sprung 2020-05-03 19:21:00 +02:00 committed by Andreas Kling
parent 838390171c
commit c7568943d9
Notes: sideshowbarker 2024-07-19 06:55:53 +09:00
3 changed files with 3 additions and 1 deletions

View file

@ -27,6 +27,7 @@
#include <AK/TestSuite.h>
#include <AK/BinarySearch.h>
#include <cstring>
TEST_CASE(vector_ints)
{

View file

@ -29,6 +29,7 @@
#include <AK/FlyString.h>
#include <AK/String.h>
#include <AK/StringBuilder.h>
#include <cstring>
TEST_CASE(construct_empty)
{

View file

@ -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);