mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
AK: Make tests compilable with the serenity target toolchain
This commit is contained in:
parent
838390171c
commit
c7568943d9
|
@ -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