Can somebody explain the assert function? I have never used it.
http://www.mathworks.com/help/matlab/ref/assert.html
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 'But I''m actually right this time';
y_correct = 'yes';
assert(isequal(wiferight(x),y_correct))
|
2 | Pass |
%%
x = 'But you just said that 2+2=3';
y_correct = 'yes';
assert(isequal(wiferight(x),y_correct))
|
Find the two most distant points
1629 Solvers
Renaming a field in a structure array
732 Solvers
Celsius to Fahrenheit converter
389 Solvers
Find out sum and carry of Binary adder
380 Solvers
465 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!