Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
sentence = 'this is BETTER than C++';
corrected = 'This Is Better Than C++';
assert(isequal(autoCase(sentence), corrected))
co =
1×1 cell array
{'This Is Better Than C++'}
|
2 | Fail |
sentence = 'hEy, tHis iS vErY wroNg!';
corrected = 'Hey, This Is Very Wrong!';
assert(isequal(autoCase(sentence), corrected))
co =
1×1 cell array
{'Hey, This Is Very Wrong!'}
|
3 | Fail |
sentence = 'tHIS sENTENCE wILL bE iNVERTED';
corrected = 'This Sentence Will Be Inverted';
assert(isequal(autoCase(sentence), corrected))
co =
1×1 cell array
{'This Sentence Will Be Inverted'}
|
4 | Fail |
sentence = 'This Sentence Will Not Be Changed';
corrected = 'This Sentence Will Not Be Changed';
assert(isequal(autoCase(sentence), corrected))
co =
1×1 cell array
{'This Sentence Will Not Be Changed'}
|
5 | Fail |
sentence = 'HELLO THERE';
corrected = 'Hello There';
assert(isequal(autoCase(sentence), corrected))
co =
1×1 cell array
{'Hello There'}
|
6 | Fail |
sentence = 'AlTeRnAtInG cApS';
corrected = 'Alternating Caps';
assert(isequal(autoCase(sentence), corrected))
co =
1×1 cell array
{'Alternating Caps'}
|
Sort a list of complex numbers based on far they are from the origin.
4327 Solvers
895 Solvers
271 Solvers
321 Solvers
Remove the air bubbles from a vector
173 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!