Cody

Solution 1784155

Submitted on 12 Apr 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
n = 1; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Assertion failed.

2   Fail
n = 2; y_correct = 0; assert(isequal(ishappy(n),y_correct))

Assertion failed.

3   Fail
n = 31; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Assertion failed.

4   Fail
n = 13; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Assertion failed.

5   Fail
n = 11; y_correct = 0; assert(isequal(ishappy(n),y_correct))

Assertion failed.

6   Fail
n = 101; y_correct = 0; assert(isequal(ishappy(n),y_correct))

Assertion failed.

7   Fail
n = 100; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Assertion failed.

8   Fail
n = 130; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Assertion failed.

9   Fail
n = 230; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Assertion failed.

10   Fail
n = 190; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Assertion failed.

11   Fail
n = 290; y_correct = 0; assert(isequal(ishappy(n),y_correct))

Assertion failed.

12   Fail
n = 998; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Assertion failed.