Cody

Solution 1940466

Submitted on 17 Sep 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
sides = [3 4 5]; tf_correct = true; assert(isequal(right(sides),tf_correct))

x = 8 16 32 y = logical 0

Assertion failed.

2   Fail
sides = [3 5 4]; tf_correct = true; assert(isequal(right(sides),tf_correct))

x = 8 32 16 y = logical 0

Assertion failed.

3   Fail
sides = [5 12 13]; tf_correct = true; assert(isequal(right(sides),tf_correct))

x = 32 4096 8192 y = logical 0

Assertion failed.

4   Pass
sides = [5 5 5]; tf_correct = false; assert(isequal(right(sides),tf_correct))

x = 32 32 32 y = logical 0

5   Fail
sides = [113 112 15]; tf_correct = true; assert(isequal(right(sides),tf_correct))

x = 1.0e+34 * 1.0385 0.5192 0.0000 y = logical 0

Assertion failed.

6   Pass
sides = [113 110 15]; tf_correct = false; assert(isequal(right(sides),tf_correct))

x = 1.0e+34 * 1.0385 0.1298 0.0000 y = logical 0

Suggested Problems

More from this Author23