Cody

Solution 2040218

Submitted on 30 Nov 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   Pass
assert(isequal(isFibonacci(2),true))

b = logical 1

2   Pass
assert(isequal(isFibonacci(3),true))

b = logical 1

3   Pass
assert(isequal(isFibonacci(5),true))

b = logical 1

4   Pass
assert(isequal(isFibonacci(89),true))

b = logical 1

5   Pass
assert(isequal(isFibonacci(233),true))

b = logical 1

6   Pass
assert(isequal(isFibonacci(6765),true))

b = logical 1

7   Fail
assert(isequal(isFibonacci(18),false))

b = logical 1

Assertion failed.

8   Fail
assert(isequal(isFibonacci(100),false))

b = logical 1

Assertion failed.

9   Fail
assert(isequal(isFibonacci(230),false))

b = logical 1

Assertion failed.

10   Fail
assert(isequal(isFibonacci(514227),false))

b = logical 1

Assertion failed.