mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-25 16:27:33 +02: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