mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-14 11:06:35 +02:00
Added JsonValue::as<T>()
This commit is contained in:
@ -41,7 +41,7 @@ private:
|
||||
template<typename T>
|
||||
void elementAtIndexMustBe(int index, T expected)
|
||||
{
|
||||
EXPECT_EQ(expected, static_cast<T>(array[index]));
|
||||
EXPECT_EQ(expected, array[index].as<T>());
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user