Cody

Solution 1742497

Submitted on 4 Mar 2019 by Martin C.
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
Documents = 'These are sample tests on a sentence'; y_correct = 'TH_S_ _R_ S_MPL_ T_STS _N _ S_NT_NC_'; assert(isequal(upper_replace(Documents),y_correct))

d = 'THESE ARE SAMPLE TESTS ON A SENTENCE' d = 'THESE _RE S_MPLE TESTS ON _ SENTENCE' d = 'THESE _RE S_MPLE TESTS ON _ SENTENCE' d = 'THESE _RE S_MPLE TESTS _N _ SENTENCE' d = 'THESE _RE S_MPLE TESTS _N _ SENTENCE' d = 'THESE _RE S_MPLE TESTS _N _ SENTENCE' d = 'TH_S_ _R_ S_MPL_ T_STS _N _ S_NT_NC_' y = 'TH_S_ _R_ S_MPL_ T_STS _N _ S_NT_NC_'

2   Pass
Documents = 'This is an underscore: _'; y_correct = 'TH_S _S _N _ND_RSC_R_: _'; assert(isequal(upper_replace(Documents),y_correct))

d = 'THIS IS AN UNDERSCORE: _' d = 'THIS IS _N UNDERSCORE: _' d = 'TH_S _S _N UNDERSCORE: _' d = 'TH_S _S _N UNDERSC_RE: _' d = 'TH_S _S _N _NDERSC_RE: _' d = 'TH_S _S _N _NDERSC_RE: _' d = 'TH_S _S _N _ND_RSC_R_: _' y = 'TH_S _S _N _ND_RSC_R_: _'

Suggested Problems

More from this Author29