Cody

Solution 1818293

Submitted on 17 May 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
x = 1.33; y_correct = [1 1 3]; assert(isequal(MixedFraction(x),y_correct))

y = 1.0000 0.4433 3.0000

Assertion failed.

2   Fail
x = 1.66; y_correct = [1 2 3]; assert(isequal(MixedFraction(x),y_correct))

y = 1.0000 0.5533 3.0000

Assertion failed.

3   Fail
x = 2.33; y_correct = [1 4 3]; assert(isequal(MixedFraction(x),y_correct))

y = 1.0000 0.7767 3.0000

Assertion failed.

4   Fail
x = 2.25; y_correct = [1 5 4]; assert(isequal(MixedFraction(x),y_correct))

y = 1.0000 0.7500 3.0000

Assertion failed.

5   Fail
x = 2.28; y_correct = [1 9 7]; assert(isequal(MixedFraction(x),y_correct))

y = 1.0000 0.7600 3.0000

Assertion failed.

6   Fail
x = 2.00; y_correct = [1 5 5]; assert(isequal(MixedFraction(x),y_correct))

y = 1.0000 0.6667 3.0000

Assertion failed.