Cody

Solution 1471358

Submitted on 26 Mar 2018
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))

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution Line: 3 Column: 10 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.