Cody

Solution 2761810

Submitted on 31 Jul 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))

s = 0 6 lunarResult = 6 lunarResult = 60

Assertion failed.

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

s = 0 7 lunarResult = 7 lunarResult = 70

Assertion failed.

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

s = 0 1 lunarResult = 1 lunarResult = 10

Assertion failed.

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

s = 0 0 9 lunarResult = 9 lunarResult = 90 lunarResult = 900

Assertion failed.

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

s = 0 0 0 4 lunarResult = 4 lunarResult = 40 lunarResult = 400 lunarResult = 4000

Assertion failed.

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

s = 0 0 0 0 1 lunarResult = 1 lunarResult = 10 lunarResult = 100 lunarResult = 1000 lunarResult = 10000

Assertion failed.

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

s = 0 9 lunarResult = 9 lunarResult = 90

Assertion failed.