Cody

Solution 2078259

Submitted on 3 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
x = 5; y = 6; assert(isequal(lunarAddition(x,y),6))

ans = 5 6

Index in position 2 exceeds array bounds (must not exceed 1). Error in lunarAddition (line 17) m(:,i) Error in Test1 (line 3) assert(isequal(lunarAddition(x,y),6))

2   Fail
x = 456; y = 789; assert(isequal(lunarAddition(x,y),789))

ans = 4 7 ans = 5 8 ans = 6 9

Output argument "lunarResult" (and maybe others) not assigned during call to "lunarAddition". Error in Test2 (line 3) assert(isequal(lunarAddition(x,y),789))

3   Fail
x = 86; y = 12374; assert(isequal(lunarAddition(x,y),12386))

ans = 0 1 ans = 0 2 ans = 0 3 ans = 8 7 ans = 6 4

Output argument "lunarResult" (and maybe others) not assigned during call to "lunarAddition". Error in Test3 (line 3) assert(isequal(lunarAddition(x,y),12386))

4   Fail
x = 29; y = 1652; z = 95412; assert(isequal(lunarAddition(x,y,z),95659))

ans = 0 0 9 ans = 0 1 5 ans = 0 6 4 ans = 2 5 1 ans = 9 2 2

Output argument "lunarResult" (and maybe others) not assigned during call to "lunarAddition". Error in Test4 (line 4) assert(isequal(lunarAddition(x,y,z),95659))

5   Fail
x = 33; y = 1111; z = 4456; a = 38; assert(isequal(lunarAddition(x,y,z,a),4458))

ans = 0 1 4 0 ans = 0 1 4 0 ans = 3 1 5 3 ans = 3 1 6 8

Output argument "lunarResult" (and maybe others) not assigned during call to "lunarAddition". Error in Test5 (line 5) assert(isequal(lunarAddition(x,y,z,a),4458))

6   Fail
x = 85214; y = 4785; z = 1; a = 850615; b = 14702140; assert(isequal(lunarAddition(x,y,z,a,b),14885785))

ans = 0 0 0 0 1 ans = 0 0 0 0 4 ans = 0 0 0 8 7 ans = 8 0 0 5 0 ans = 5 4 0 0 2 ans = 2 7 0 6 1 ans = 1 8 0 1 4 ans = 4 5 1 5 0

Output argument "lunarResult" (and maybe others) not assigned during call to "lunarAddition". Error in Test6 (line 6) assert(isequal(lunarAddition(x,y,z,a,b),14885785))

7   Fail
x = 9; y = 0; assert(isequal(lunarAddition(x,y),9))

ans = 9 0

Index in position 2 exceeds array bounds (must not exceed 1). Error in lunarAddition (line 17) m(:,i) Error in Test7 (line 3) assert(isequal(lunarAddition(x,y),9))