Cody

# Problem 3019. Calculator spelling - Letters to Numbers

Solution 2100863

Submitted on 21 Jan 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
n = 35007; word = 'LOOSE'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '35007'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test1 (line 3) assert(isequal(calc_spell_num(word),n))

2   Fail
n = 77345; word = 'ShELL'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '77345'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test2 (line 3) assert(isequal(calc_spell_num(word),n))

3   Fail
n = 36138; word = 'BEIgE'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '36138'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test3 (line 3) assert(isequal(calc_spell_num(word),n))

4   Fail
n = 378806; word = 'gOBBLE'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '378806'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test4 (line 3) assert(isequal(calc_spell_num(word),n))

5   Fail
n = 376006; word = 'gOOgLE'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '376006'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test5 (line 3) assert(isequal(calc_spell_num(word),n))

6   Fail
n = 57738461375; word = 'SLEIghBELLS'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '57738461375'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test6 (line 3) assert(isequal(calc_spell_num(word),n))

7   Fail
n = 0.7734; word = 'hELLO'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '0.7734'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test7 (line 3) assert(isequal(calc_spell_num(word),n))

8   Fail
n = 53045; word = 'ShOES'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '53045'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test8 (line 3) assert(isequal(calc_spell_num(word),n))

9   Fail
n = 771; word = 'ILL'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '771'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test9 (line 3) assert(isequal(calc_spell_num(word),n))

10   Fail
n = 345; word = 'ShE'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '345'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test10 (line 3) assert(isequal(calc_spell_num(word),n))

11   Fail
n = 7735; word = 'SELL'; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '7735'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test11 (line 3) assert(isequal(calc_spell_num(word),n))

12   Fail
ind = randi(4); n_arr = [36138 707 7714 57738]; n = n_arr(ind); word_arr = {'BEIgE','LOL','hILL','BELLS'}; word = word_arr{ind}; assert(isequal(calc_spell_num(word),n))

s = 'OIZEhSgLB' e = '012345678' word = '7714'

Output argument "n" (and maybe others) not assigned during call to "calc_spell_num". Error in Test12 (line 6) assert(isequal(calc_spell_num(word),n))

### Community Treasure Hunt

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

Start Hunting!