diff --git a/AK/Tests/TestJSON.cpp b/AK/Tests/TestJSON.cpp index e532040c4d..eba6263495 100644 --- a/AK/Tests/TestJSON.cpp +++ b/AK/Tests/TestJSON.cpp @@ -1,10 +1,10 @@ #include -#include #include #include #include #include +#include #include TEST_CASE(load_form) @@ -79,7 +79,7 @@ TEST_CASE(json_utf8_character) auto json = JsonValue::from_string("\"\xc3\x84\""); EXPECT_EQ(json.type(), JsonValue::Type::String); EXPECT_EQ(json.as_string().is_null(), false); - EXPECT_EQ(json.as_string().length(), 2); + EXPECT_EQ(json.as_string().length(), size_t { 2 }); } TEST_MAIN(JSON) diff --git a/AK/Tests/TestStringView.cpp b/AK/Tests/TestStringView.cpp index e1af2efa46..a006ae9d61 100644 --- a/AK/Tests/TestStringView.cpp +++ b/AK/Tests/TestStringView.cpp @@ -7,7 +7,7 @@ TEST_CASE(construct_empty) EXPECT(StringView().is_null()); EXPECT(StringView().is_empty()); EXPECT(!StringView().characters_without_null_termination()); - EXPECT_EQ(StringView().length(), 0); + EXPECT_EQ(StringView().length(), size_t { 0 }); } TEST_CASE(view_literal)