diff options
author | Shannon Booth <shannon.ml.booth@gmail.com> | 2020-01-05 12:59:25 +1300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-06 10:43:00 +0100 |
commit | 4a6605bbe5c315ce10b3a08d8b5285a1aea63920 (patch) | |
tree | 80ed1b05d3ae59c331953e55286fdef3e955cd10 /AK/Tests/TestJSON.cpp | |
parent | d4fa8e4b000b540a9944a0918802dcd27b7c49ff (diff) | |
download | serenity-4a6605bbe5c315ce10b3a08d8b5285a1aea63920.zip |
AK: Fix test compile warnings
These warnings are pretty harmless, but warnings nonetheless.
Diffstat (limited to 'AK/Tests/TestJSON.cpp')
-rw-r--r-- | AK/Tests/TestJSON.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <AK/TestSuite.h> -#include <AK/String.h> #include <AK/HashMap.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> #include <AK/JsonValue.h> +#include <AK/String.h> #include <AK/StringBuilder.h> 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) |