gtsam/matlab/+gtsam/CHECK.m

11 lines
193 B
Matlab
Raw Normal View History

function CHECK(name,assertion)
2012-01-22 14:28:11 +08:00
% CHECK throw an error if an assertion fails
%
% CHECK(name,assertion)
% - name of test
% - assertion
if (assertion~=1)
error(['CHECK ' name ' fails']);
end