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.
|
785 Solvers
Arrange vector in ascending order
624 Solvers
559 Solvers
260 Solvers
376 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!