Cody

Solution 592052

Submitted on 5 Mar 2015 by Jean-Marie Sainthillier
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
%% words = {'hello','there','fellow','matlab','users'}; score = 43; assert(isequal(scrabble_scores_2(words),score))

2   Pass
%% words = {'what','do','you','think','of','this','problem'}; score = 56; assert(isequal(scrabble_scores_2(words),score))

3   Pass
%% words = {'if','you','like','it','please','give','it','a','like'}; score = 48; assert(isequal(scrabble_scores_2(words),score))

4   Pass
%% words = {'zither','quandry','flummox','wealthy','amalgam'}; score = 87; assert(isequal(scrabble_scores_2(words),score))

5   Pass
%% words = {'one','two','three','four','five'}; score = 34; assert(isequal(scrabble_scores_2(words),score))

6   Pass
%% words = {'heterogeneous','homogenously','concatenate','thusly','hi'}; score = [17 21 15 12 5]; ind = randi(5); assert(isequal(scrabble_scores_2(words(ind)),score(ind)))

7   Pass
%% words = {'perspicacious','yes','zero','quizzical','no'}; score = [21 6 13 38 2]; ind = randi(5); assert(isequal(scrabble_scores_2(words(ind)),score(ind)))

8   Pass
%% pangram test (one string) to help ensure letters scores are correctly assigned words = {'the quick brown fox jumps over a lazy dog'}; score = 94; assert(isequal(scrabble_scores_2(words),score))

9   Pass
%% pangram test (multiple words) to help ensure letters scores are correctly assigned words = {'the','quick','brown','fox','jumps','over','a','lazy','dog'}; score = 94; assert(isequal(scrabble_scores_2(words),score))