Cody

Problem 43318. Compare two strings.

Solution 1189284

Submitted on 15 May 2017 by Thomas Bischoff
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
x = 'When you finish the test, you will be told your approximate English level. You can then search for suitable content on LearnEnglish Teens by level. You can also search for content by topic.'; y='When you finish the test, you will be told your approximate English level. You can then search for suitable content on LearnEnglish Teens by level. You can also search for content by topic.'; y_correct = true; assert(isequal(Comparer(x,y),y_correct))

2   Pass
x = 'When you finish tee test, you will be told your approximate English level. You can then search for suitable content on LearnEnglish Teens by level. You can also search for content by topic.'; y='When you finish the test, you will be told your approximate English level. You can then search for suitable content on LearnEnglish Teens by level. You can also search for content by topic.'; y_correct = false; assert(isequal(Comparer(x,y),y_correct))

3   Pass
x='Hello'; y='Hi'; y_correct = false; assert(isequal(Comparer(x,y),y_correct))

4   Pass
x='Hello'; y='Hello'; y_correct = true; assert(isequal(Comparer(x,y),y_correct))

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!