mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-19 05:22:24 +02:00
Fix call of overloaded 'String(const char*, int)' is ambiguous
This commit is contained in:
@ -13,7 +13,7 @@ TEST_CASE("JsonString") {
|
||||
|
||||
CHECK(s.isNull() == true);
|
||||
CHECK(s.c_str() == 0);
|
||||
CHECK(s.isStatic() == true);
|
||||
CHECK(s.isLinked() == true);
|
||||
}
|
||||
|
||||
SECTION("Compare null with boolean") {
|
||||
@ -82,4 +82,11 @@ TEST_CASE("JsonString") {
|
||||
ss << JsonString("hello world!");
|
||||
CHECK(ss.str() == "hello world!");
|
||||
}
|
||||
|
||||
SECTION("Construct with a size") {
|
||||
JsonString s("hello world", 5);
|
||||
|
||||
CHECK(s.size() == 5);
|
||||
CHECK(s.isLinked() == true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user