mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Fixed return type of JsonArray::is<T>() and some others (issue #121)
This commit is contained in:
@@ -39,11 +39,13 @@ class JsonArray_Container_Tests : public ::testing::Test {
|
||||
private:
|
||||
template <typename T>
|
||||
void itemMustEqual(int index, T expected) {
|
||||
EXPECT_TRUE(_array[index].is<T>());
|
||||
EXPECT_EQ(expected, _array[index].as<T>());
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void itemMustReference(int index, const T& expected) {
|
||||
EXPECT_TRUE(_array[index].is<T&>());
|
||||
EXPECT_EQ(&expected, &_array[index].as<T&>());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user