From c7568943d9130ac8c8a0b00e592c1ead06cca55b Mon Sep 17 00:00:00 2001 From: Emanuel Sprung Date: Sun, 3 May 2020 19:21:00 +0200 Subject: [PATCH] AK: Make tests compilable with the serenity target toolchain --- AK/Tests/TestBinarySearch.cpp | 1 + AK/Tests/TestString.cpp | 1 + AK/Tests/TestStringUtils.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/AK/Tests/TestBinarySearch.cpp b/AK/Tests/TestBinarySearch.cpp index bf7e2b8dc2e..7d75028cfc7 100644 --- a/AK/Tests/TestBinarySearch.cpp +++ b/AK/Tests/TestBinarySearch.cpp @@ -27,6 +27,7 @@ #include #include +#include TEST_CASE(vector_ints) { diff --git a/AK/Tests/TestString.cpp b/AK/Tests/TestString.cpp index fab4f1cc577..bd9a8fbc73c 100644 --- a/AK/Tests/TestString.cpp +++ b/AK/Tests/TestString.cpp @@ -29,6 +29,7 @@ #include #include #include +#include TEST_CASE(construct_empty) { diff --git a/AK/Tests/TestStringUtils.cpp b/AK/Tests/TestStringUtils.cpp index a284e86b2cc..ce790941c7e 100644 --- a/AK/Tests/TestStringUtils.cpp +++ b/AK/Tests/TestStringUtils.cpp @@ -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);