mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
AK: Fix test compile warnings
These warnings are pretty harmless, but warnings nonetheless.
This commit is contained in:
parent
d4fa8e4b00
commit
4a6605bbe5
2 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
#include <AK/TestSuite.h>
|
#include <AK/TestSuite.h>
|
||||||
|
|
||||||
#include <AK/String.h>
|
|
||||||
#include <AK/HashMap.h>
|
#include <AK/HashMap.h>
|
||||||
#include <AK/JsonArray.h>
|
#include <AK/JsonArray.h>
|
||||||
#include <AK/JsonObject.h>
|
#include <AK/JsonObject.h>
|
||||||
#include <AK/JsonValue.h>
|
#include <AK/JsonValue.h>
|
||||||
|
#include <AK/String.h>
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
|
|
||||||
TEST_CASE(load_form)
|
TEST_CASE(load_form)
|
||||||
|
@ -79,7 +79,7 @@ TEST_CASE(json_utf8_character)
|
||||||
auto json = JsonValue::from_string("\"\xc3\x84\"");
|
auto json = JsonValue::from_string("\"\xc3\x84\"");
|
||||||
EXPECT_EQ(json.type(), JsonValue::Type::String);
|
EXPECT_EQ(json.type(), JsonValue::Type::String);
|
||||||
EXPECT_EQ(json.as_string().is_null(), false);
|
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)
|
TEST_MAIN(JSON)
|
||||||
|
|
|
@ -7,7 +7,7 @@ TEST_CASE(construct_empty)
|
||||||
EXPECT(StringView().is_null());
|
EXPECT(StringView().is_null());
|
||||||
EXPECT(StringView().is_empty());
|
EXPECT(StringView().is_empty());
|
||||||
EXPECT(!StringView().characters_without_null_termination());
|
EXPECT(!StringView().characters_without_null_termination());
|
||||||
EXPECT_EQ(StringView().length(), 0);
|
EXPECT_EQ(StringView().length(), size_t { 0 });
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE(view_literal)
|
TEST_CASE(view_literal)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue