Simplified JsonVariant::as<T>() to always return T

This commit is contained in:
Benoit Blanchon committed 2021-03-08 19:33:52 +01:00
1 parent 9094179856
commit e4ce75e20c
16 files changed
+78 -81

No files matched your search

-1
View File
@@ -60,7 +60,6 @@ TEST_CASE("JsonArray::operator[]") {
array[0] = str;
REQUIRE(str == array[0].as<const char*>());
REQUIRE(str == array[0].as<char*>()); // <- short hand
REQUIRE(true == array[0].is<const char*>());
REQUIRE(false == array[0].is<int>());
}