diff --git a/+tests/+unit/FunctionTests.m b/+tests/+unit/FunctionTests.m index 4b16b445..2e739c5c 100644 --- a/+tests/+unit/FunctionTests.m +++ b/+tests/+unit/FunctionTests.m @@ -34,5 +34,12 @@ function testWriteCompoundScalar(testCase) io.writeCompound(fid, '/map_data', data) H5F.close(fid); end + function testIsNeurodatatype(testCase) + timeSeries = types.core.TimeSeries(); + testCase.verifyTrue(matnwb.utility.isNeurodataType(timeSeries)) + + dataPipe = types.untyped.DataPipe('data', rand(10,10)); + testCase.verifyFalse(matnwb.utility.isNeurodataType(dataPipe)) + end end end \ No newline at end of file