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))
c =
'This is better than c++'
|
2 | Fail |
sentence = 'hEy, tHis iS vErY wroNg!';
corrected = 'Hey, This Is Very Wrong!';
assert(isequal(autoCase(sentence), corrected))
c =
'Hey, this is very wrong!'
|
3 | Fail |
sentence = 'tHIS sENTENCE wILL bE iNVERTED';
corrected = 'This Sentence Will Be Inverted';
assert(isequal(autoCase(sentence), corrected))
c =
'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))
c =
'This sentence will not be changed'
|
5 | Fail |
sentence = 'HELLO THERE';
corrected = 'Hello There';
assert(isequal(autoCase(sentence), corrected))
c =
'Hello there'
|
6 | Fail |
sentence = 'AlTeRnAtInG cApS';
corrected = 'Alternating Caps';
assert(isequal(autoCase(sentence), corrected))
c =
'Alternating caps'
|
1398 Solvers
819 Solvers
495 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
5113 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!