Skip to content

Commit

Permalink
Add test for new utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Dec 12, 2024
1 parent fe1c25a commit b76c07c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions +tests/+unit/FunctionTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b76c07c

Please sign in to comment.