Is there a bug in the Test Suite ? I made a code that resulted in the exact ideal answer but the Test has failed!?
I experienced the same thing...was able to generate the output exactly but received a failing score. Did you solve your issue?
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
list = {'Barney Google','Snuffy Smith','Dagwood Bumstead'};
alpha_list = {'Dagwood Bumstead','Barney Google','Snuffy Smith'}
assert(isequal(alphabetize(list),alpha_list))
Error: Not enough input arguments.
|
2 | Fail |
%%
list = {'Harry Truman'
'Dwight Eisenhower'
'John F. Kennedy'
'Lyndon Johnson'
'Richard Nixon'
'Gerald Ford'
'Cleve Moler'
'Ronald Reagan'
'George Bush'
'Bill Clinton'
'George Bush'
'Barack Obama'};
alpha_list = {'George Bush'
'George Bush'
'Bill Clinton'
'Dwight Eisenhower'
'Gerald Ford'
'Lyndon Johnson'
'John F. Kennedy'
'Cleve Moler'
'Richard Nixon'
'Barack Obama'
'Ronald Reagan'
'Harry Truman'}
assert(isequal(alphabetize(list),alpha_list))
Error: Not enough input arguments.
|
2240 Solvers
Rotate and display numbered tile
238 Solvers
Duplicate each element of a vector.
518 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
254 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!