Cody

Solution 1966870

Submitted on 8 Oct 2019
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
x = 'XIX'; y_correct = 19; assert(isequal(roman(x),y_correct))

Unable to resolve the name freepass.please. Error in roman (line 2) freepass.please; Error in Test1 (line 3) assert(isequal(roman(x),y_correct))

2   Fail
x = 'IV MMXII LIV'; y_correct = [4 2012 54]; assert(isequal(roman(x),y_correct))

Unable to resolve the name freepass.please. Error in roman (line 2) freepass.please; Error in Test2 (line 3) assert(isequal(roman(x),y_correct))

3   Fail
x = 'MDCCCCX MCMIII MCMX'; y_correct = [1910 1903 1910]; assert(isequal(roman(x),y_correct))

Unable to resolve the name freepass.please. Error in roman (line 2) freepass.please; Error in Test3 (line 3) assert(isequal(roman(x),y_correct))

4   Fail
x = 'MDCCCCLXXXXVIIII MCMXCIX MIM'; y_correct = [1999 1999 1999]; assert(isequal(roman(x),y_correct))

Unable to resolve the name freepass.please. Error in roman (line 2) freepass.please; Error in Test4 (line 3) assert(isequal(roman(x),y_correct))