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))
|
All your base are belong to us
425 Solvers
Program an exclusive OR operation with logical operators
597 Solvers
Make a run-length companion vector
453 Solvers
Number of digits in an integer
272 Solvers
3009 Solvers