Added a matlab version of the EXPECT assertion that throws a warning rather than an error on failure
parent
c5f8f5b5da
commit
511ab6334d
|
@ -0,0 +1,10 @@
|
||||||
|
function EXPECT(name,assertion)
|
||||||
|
% EXPECT throw a warning if an assertion fails
|
||||||
|
%
|
||||||
|
% EXPECT(name,assertion)
|
||||||
|
% - name of test
|
||||||
|
% - assertion
|
||||||
|
|
||||||
|
if (assertion~=1)
|
||||||
|
warning(['EXPECT ' name ' fails']);
|
||||||
|
end
|
Loading…
Reference in New Issue