Cody

Solution 1706229

Submitted on 11 Jan 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
C = 'b'; A = 122; CA_C = 98; AC_C = 'z'; [CA AC] = Ascii_Conversions(C,A); assert(isequal(CA,CA_C)) assert(strcmp(AC,AC_C))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Ascii_Conversions (line 2) In ScoringEngineTestPoint1 (line 5) In solutionTest (line 3)]

One or more output arguments not assigned during call to "varargout". Error in Test1 (line 5) [CA AC] = Ascii_Conversions(C,A);

2   Fail
C = 'H'; A = 115; CA_C = 72; AC_C = 's'; [CA AC] = Ascii_Conversions(C,A); assert(isequal(CA,CA_C)) assert(strcmp(AC,AC_C))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Ascii_Conversions (line 2) In ScoringEngineTestPoint2 (line 5) In solutionTest (line 5)]

One or more output arguments not assigned during call to "varargout". Error in Test2 (line 5) [CA AC] = Ascii_Conversions(C,A);

3   Fail
C = '/'; A = 50; CA_C = 47; AC_C = '2'; [CA AC] = Ascii_Conversions(C,A); assert(isequal(CA,CA_C)) assert(strcmp(AC,AC_C))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Ascii_Conversions (line 2) In ScoringEngineTestPoint3 (line 5) In solutionTest (line 7)]

One or more output arguments not assigned during call to "varargout". Error in Test3 (line 5) [CA AC] = Ascii_Conversions(C,A);

4   Fail
C = '}'; A = 64; CA_C = 125; AC_C = '@'; [CA AC] = Ascii_Conversions(C,A); assert(isequal(CA,CA_C)) assert(strcmp(AC,AC_C))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Ascii_Conversions (line 2) In ScoringEngineTestPoint4 (line 5) In solutionTest (line 9)]

One or more output arguments not assigned during call to "varargout". Error in Test4 (line 5) [CA AC] = Ascii_Conversions(C,A);

Suggested Problems

More from this Author2