Cody

Solution 2455223

Submitted on 2 Jun 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 = 1; y=1; z_correct = 1; assert(isequal(dividing(x,y),z_correct))

Assertion failed.

2   Fail
x = 1; y=0; z_correct = 'ERROR'; assert(isequal(dividing(x,y),z_correct))

Assertion failed.

3   Fail
x = Inf; y=-Inf; z_correct = 'ERROR'; assert(isequal(dividing(x,y),z_correct))

Assertion failed.

4   Fail
x = 1; y=NaN; z_correct = 'ERROR'; assert(isequal(dividing(x,y),z_correct))

Assertion failed.