Cody

Solution 2100734

Submitted on 21 Jan 2020 by Nofar Nizri
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
sentence = 'this is BETTER than C++'; corrected = 'This Is Better Than C++'; assert(isequal(autoCase(sentence), corrected))

sentence1 = 'this is better than c++' corrected = 'this is better than c++' corrected = 'This is better than c++' corrected = 'this is better than c++' corrected = 'This is better than c++' corrected = 'this is better than c++' corrected = 'This is better than c++' corrected = 'this is better than c++' corrected = 'This is better than c++' sentence1 = 'this Is better than c++' corrected = 'this Is better than c++' corrected = 'This Is better than c++' corrected = 'this Is better than c++' corrected = 'This Is better than c++' corrected = 'this Is better than c++' corrected = 'This Is better than c++' sentence1 = 'this Is Better than c++' corrected = 'this Is Better than c++' corrected = 'This Is Better than c++' corrected = 'this Is Better than c++' corrected = 'This Is Better than c++' corrected = 'this Is Better than c++' corrected = 'This Is Better than c++' corrected = 'this Is Better than c++' corrected = 'This Is Better than c++' corrected = 'this Is Better than c++' corrected = 'This Is Better than c++' corrected = 'this Is Better than c++' corrected = 'This Is Better than c++' corrected = 'this Is Better than c++' corrected = 'This Is Better than c++' sentence1 = 'this Is Better Than c++' corrected = 'this Is Better Than c++' corrected = 'This Is Better Than c++' corrected = 'this Is Better Than c++' corrected = 'This Is Better Than c++' corrected = 'this Is Better Than c++' corrected = 'This Is Better Than c++' corrected = 'this Is Better Than c++' corrected = 'This Is Better Than c++' corrected = 'this Is Better Than c++' corrected = 'This Is Better Than c++' sentence1 = 'this Is Better Than C++' corrected = 'this Is Better Than C++' corrected = 'This Is Better Than C++' corrected = 'this Is Better Than C++' corrected = 'This Is Better Than C++' corrected = 'this Is Better Than C++' corrected = 'This Is Better Than C++'

2   Pass
sentence = 'hEy, tHis iS vErY wroNg!'; corrected = 'Hey, This Is Very Wrong!'; assert(isequal(autoCase(sentence), corrected))

sentence1 = 'hey, this is very wrong!' corrected = 'hey, this is very wrong!' corrected = 'Hey, this is very wrong!' corrected = 'hey, this is very wrong!' corrected = 'Hey, this is very wrong!' corrected = 'hey, this is very wrong!' corrected = 'Hey, this is very wrong!' corrected = 'hey, this is very wrong!' corrected = 'Hey, this is very wrong!' sentence1 = 'hey, This is very wrong!' corrected = 'hey, This is very wrong!' corrected = 'Hey, This is very wrong!' corrected = 'hey, This is very wrong!' corrected = 'Hey, This is very wrong!' corrected = 'hey, This is very wrong!' corrected = 'Hey, This is very wrong!' corrected = 'hey, This is very wrong!' corrected = 'Hey, This is very wrong!' corrected = 'hey, This is very wrong!' corrected = 'Hey, This is very wrong!' sentence1 = 'hey, This Is very wrong!' corrected = 'hey, This Is very wrong!' corrected = 'Hey, This Is very wrong!' corrected = 'hey, This Is very wrong!' corrected = 'Hey, This Is very wrong!' corrected = 'hey, This Is very wrong!' corrected = 'Hey, This Is very wrong!' sentence1 = 'hey, This Is Very wrong!' corrected = 'hey, This Is Very wrong!' corrected = 'Hey, This Is Very wrong!' corrected = 'hey, This Is Very wrong!' corrected = 'Hey, This Is Very wrong!' corrected = 'hey, This Is Very wrong!' corrected = 'Hey, This Is Very wrong!' corrected = 'hey, This Is Very wrong!' corrected = 'Hey, This Is Very wrong!' corrected = 'hey, This Is Very wrong!' corrected = 'Hey, This Is Very wrong!' sentence1 = 'hey, This Is Very Wrong!' corrected = 'hey, This Is Very Wrong!' corrected = 'Hey, This Is Very Wrong!' corrected = 'hey, This Is Very Wrong!' corrected = 'Hey, This Is Very Wrong!' corrected = 'hey, This Is Very Wrong!' corrected = 'Hey, This Is Very Wrong!' corrected = 'hey, This Is Very Wrong!' corrected = 'Hey, This Is Very Wrong!' corrected = 'hey, This Is Very Wrong!' corrected = 'Hey, This Is Very Wrong!' corrected = 'hey, This Is Very Wrong!' corrected = 'Hey, This Is Very Wrong!'

3   Pass
sentence = 'tHIS sENTENCE wILL bE iNVERTED'; corrected = 'This Sentence Will Be Inverted'; assert(isequal(autoCase(sentence), corrected))

sentence1 = 'this sentence will be inverted' corrected = 'this sentence will be inverted' corrected = 'This sentence will be inverted' corrected = 'this sentence will be inverted' corrected = 'This sentence will be inverted' corrected = 'this sentence will be inverted' corrected = 'This sentence will be inverted' corrected = 'this sentence will be inverted' corrected = 'This sentence will be inverted' sentence1 = 'this Sentence will be inverted' corrected = 'this Sentence will be inverted' corrected = 'This Sentence will be inverted' corrected = 'this Sentence will be inverted' corrected = 'This Sentence will be inverted' corrected = 'this Sentence will be inverted' corrected = 'This Sentence will be inverted' corrected = 'this Sentence will be inverted' corrected = 'This Sentence will be inverted' corrected = 'this Sentence will be inverted' corrected = 'This Sentence will be inverted' corrected = 'this Sentence will be inverted' corrected = 'This Sentence will be inverted' corrected = 'this Sentence will be inverted' corrected = 'This Sentence will be inverted' corrected = 'this Sentence will be inverted' corrected = 'This Sentence will be inverted' corrected = 'this Sentence will be inverted' corrected = 'This Sentence will be inverted' sentence1 = 'this Sentence Will be inverted' corrected = 'this Sentence Will be inverted' corrected = 'This Sentence Will be inverted' corrected = 'this Sentence Will be inverted' corrected = 'This Sentence Will be inverted' corrected = 'this Sentence Will be inverted' corrected = 'This Sentence Will be inverted' corrected = 'this Sentence Will be inverted' corrected = 'This Sentence Will be inverted' corrected = 'this Sentence Will be inverted' corrected = 'This Sentence Will be inverted' sentence1 = 'this Sentence Will Be inverted' corrected = 'this Sentence Will Be inverted' corrected = 'This Sentence Will Be inverted' corrected = 'this Sentence Will Be inverted' corrected = 'This Sentence Will Be inverted' corrected = 'this Sentence Will Be inverted' corrected = 'This Sentence Will Be inverted' sentence1 = 'this Sentence Will Be Inverted' corrected = 'this Sentence Will Be Inverted' corrected = 'This Sentence Will Be Inverted' corrected = 'this Sentence Will Be Inverted' corrected = 'This Sentence Will Be Inverted' corrected = 'this Sentence Will Be Inverted' corrected = 'This Sentence Will Be Inverted' corrected = 'this Sentence Will Be Inverted' corrected = 'This Sentence Will Be Inverted' corrected = 'this Sentence Will Be Inverted' corrected = 'This Sentence Will Be Inverted' corrected = 'this Sentence Will Be Inverted' corrected = 'This Sentence Will Be Inverted' corrected = 'this Sentence Will Be Inverted' corrected = 'This Sentence Will Be Inverted' corrected = 'this Sentence Will Be Inverted' corrected = 'This Sentence Will Be Inverted'

4   Pass
sentence = 'This Sentence Will Not Be Changed'; corrected = 'This Sentence Will Not Be Changed'; assert(isequal(autoCase(sentence), corrected))

sentence1 = 'this sentence will not be changed' corrected = 'this sentence will not be changed' corrected = 'This sentence will not be changed' corrected = 'this sentence will not be changed' corrected = 'This sentence will not be changed' corrected = 'this sentence will not be changed' corrected = 'This sentence will not be changed' corrected = 'this sentence will not be changed' corrected = 'This sentence will not be changed' sentence1 = 'this Sentence will not be changed' corrected = 'this Sentence will not be changed' corrected = 'This Sentence will not be changed' corrected = 'this Sentence will not be changed' corrected = 'This Sentence will not be changed' corrected = 'this Sentence will not be changed' corrected = 'This Sentence will not be changed' corrected = 'this Sentence will not be changed' corrected = 'This Sentence will not be changed' corrected = 'this Sentence will not be changed' corrected = 'This Sentence will not be changed' corrected = 'this Sentence will not be changed' corrected = 'This Sentence will not be changed' corrected = 'this Sentence will not be changed' corrected = 'This Sentence will not be changed' corrected = 'this Sentence will not be changed' corrected = 'This Sentence will not be changed' corrected = 'this Sentence will not be changed' corrected = 'This Sentence will not be changed' sentence1 = 'this Sentence Will not be changed' corrected = 'this Sentence Will not be changed' corrected = 'This Sentence Will not be changed' corrected = 'this Sentence Will not be changed' corrected = 'This Sentence Will not be changed' corrected = 'this Sentence Will not be changed' corrected = 'This Sentence Will not be changed' corrected = 'this Sentence Will not be changed' corrected = 'This Sentence Will not be changed' corrected = 'this Sentence Will not be changed' corrected = 'This Sentence Will not be changed' sentence1 = 'this Sentence Will Not be changed' corrected = 'this Sentence Will Not be changed' corrected = 'This Sentence Will Not be changed' corrected = 'this Sentence Will Not be changed' corrected = 'This Sentence Will Not be changed' corrected = 'this Sentence Will Not be changed' corrected = 'This Sentence Will Not be changed' corrected = 'this Sentence Will Not be changed' corrected = 'This Sentence Will Not be changed' sentence1 = 'this Sentence Will Not Be changed' corrected = 'this Sentence Will Not Be changed' corrected = 'This Sentence Will Not Be changed' corrected = 'this Sentence Will Not Be changed' corrected = 'This Sentence Will Not Be changed' corrected = 'this Sentence Will Not Be changed' corrected = 'This Sentence Will Not Be changed' sentence1 = 'this Sentence Will Not Be Changed' corrected = 'this Sentence Will Not Be Changed' corrected = 'This Sentence Will Not Be Changed' corrected = 'this Sentence Will Not Be Changed' corrected = 'This Sentence Will Not Be Changed' corrected = 'this Sentence Will Not Be Changed' corrected = 'This Sentence Will Not Be Changed' corrected = 'this Sentence Will Not Be Changed' corrected = 'This Sentence Will Not Be Changed' corrected = 'this Sentence Will Not Be Changed' corrected = 'This Sentence Will Not Be Changed' corrected = 'this Sentence Will Not Be Changed' corrected = 'This Sentence Will Not Be Changed' corrected = 'this Sentence Will Not Be Changed' corrected = 'This Sentence Will Not Be Changed'

5   Pass
sentence = 'HELLO THERE'; corrected = 'Hello There'; assert(isequal(autoCase(sentence), corrected))

sentence1 = 'hello there' corrected = 'hello there' corrected = 'Hello there' corrected = 'hello there' corrected = 'Hello there' corrected = 'hello there' corrected = 'Hello there' corrected = 'hello there' corrected = 'Hello there' corrected = 'hello there' corrected = 'Hello there' sentence1 = 'hello There' corrected = 'hello There' corrected = 'Hello There' corrected = 'hello There' corrected = 'Hello There' corrected = 'hello There' corrected = 'Hello There' corrected = 'hello There' corrected = 'Hello There' corrected = 'hello There' corrected = 'Hello There'

6   Pass
sentence = 'AlTeRnAtInG cApS'; corrected = 'Alternating Caps'; assert(isequal(autoCase(sentence), corrected))

sentence1 = 'alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' corrected = 'alternating caps' corrected = 'Alternating caps' sentence1 = 'alternating Caps' corrected = 'alternating Caps' corrected = 'Alternating Caps' corrected = 'alternating Caps' corrected = 'Alternating Caps' corrected = 'alternating Caps' corrected = 'Alternating Caps' corrected = 'alternating Caps' corrected = 'Alternating Caps'

Suggested Problems

More from this Author25