uniform unittest framework for GNU Octave and Matlab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
614 B

%% block 1
clear
assert(4 == 4, 'short test description',' default error out', 'default output');
assert(sum(1:10) == 55, 'summenprüfung');
assert(randi([0 2]) == 1, 'could fail', 'zweifelhafte implementation', 'default output');
pause(3)
assert(0 == 1);
%% test 2
clear
assert( 1 == 1, 'short description of test')
pause(2)
assert( 1 == 0, 'short description of test', 'optionale error message when it failed', 'optional default output')
%clear all
try
some wired stuff
assert(true)
catch
assert(false,'some wired stuff', 'sucks')
end
try
rand(1);
assert(true)
catch
assert(false)
end