Cody

# Problem 44697. count upper and lower case characters

Solution 2189362

Submitted on 2 Apr 2020
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   Fail
str = 'This is a Test Case'; ans_corr = [3 12]; assert(isequal(counter_ul(str),ans_corr))

Output argument "y" (and maybe others) not assigned during call to "counter_ul". Error in Test1 (line 3) assert(isequal(counter_ul(str),ans_corr))

2   Fail
str = 'RandoM'; ans_corr = [2 4]; assert(isequal(counter_ul(str),ans_corr))

Output argument "y" (and maybe others) not assigned during call to "counter_ul". Error in Test2 (line 3) assert(isequal(counter_ul(str),ans_corr))

3   Fail
str = 'Hello World'; ans_corr = [2 8]; assert(isequal(counter_ul(str),ans_corr))

Output argument "y" (and maybe others) not assigned during call to "counter_ul". Error in Test3 (line 3) assert(isequal(counter_ul(str),ans_corr))

4   Fail
str = 'HELLO WORLD'; ans_corr = [10 0]; assert(isequal(counter_ul(str),ans_corr))

Output argument "y" (and maybe others) not assigned during call to "counter_ul". Error in Test4 (line 3) assert(isequal(counter_ul(str),ans_corr))

5   Fail
str = 'hello world'; ans_corr = [0 10]; assert(isequal(counter_ul(str),ans_corr))

Output argument "y" (and maybe others) not assigned during call to "counter_ul". Error in Test5 (line 3) assert(isequal(counter_ul(str),ans_corr))

6   Fail
str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; ans_corr = [26 0]; assert(isequal(counter_ul(str),ans_corr))

Output argument "y" (and maybe others) not assigned during call to "counter_ul". Error in Test6 (line 3) assert(isequal(counter_ul(str),ans_corr))

7   Fail
str = 'abcdefghijklmnopqrstuvwxyz'; ans_corr = [0 26]; assert(isequal(counter_ul(str),ans_corr))

Output argument "y" (and maybe others) not assigned during call to "counter_ul". Error in Test7 (line 3) assert(isequal(counter_ul(str),ans_corr))

8   Fail
str = '42'; ans_corr = [0 0]; assert(isequal(counter_ul(str),ans_corr))

Output argument "y" (and maybe others) not assigned during call to "counter_ul". Error in Test8 (line 3) assert(isequal(counter_ul(str),ans_corr))

9   Fail
str = 'Matlab'; ans_corr = [1 5]; assert(isequal(counter_ul(str),ans_corr))

Output argument "y" (and maybe others) not assigned during call to "counter_ul". Error in Test9 (line 3) assert(isequal(counter_ul(str),ans_corr))