We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0956d9e commit f29ccceCopy full SHA for f29ccce
2 files changed
Sources/NodeEngine/NE_Value.hpp
@@ -196,7 +196,7 @@ bool IsComplexType (const ValueConstPtr& val)
196
}
197
bool isType = true;
198
listVal->Enumerate ([&] (const ValueConstPtr& innerVal) {
199
- if (!Value::IsType<Type> (innerVal)) {
+ if (!IsComplexType<Type> (innerVal)) {
200
isType = false;
201
202
});
Sources/NodeEngineTest/ValueTest.cpp
@@ -180,6 +180,8 @@ TEST (FlattenTest)
180
theListValue->Push (innerListValue);
181
182
ValueConstPtr flatten = FlattenValue (theListValue);
183
+ ASSERT (IsComplexType<IntValue> (theListValue));
184
+ ASSERT (IsComplexType<IntValue> (flatten));
185
ASSERT (Value::IsType<ListValue> (flatten));
186
ListValueConstPtr flattenList = Value::Cast<ListValue> (flatten);
187
ASSERT (flattenList->GetSize () == 3);
0 commit comments