Cody

# Problem 2002. Schrödinger dog

Solution 2016552

Submitted on 12 Nov 2019 at 20:53
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
y_correct = 1; assert(isequal(dog,y_correct))

2   Fail
y_correct = 0; assert(isequal(dog,y_correct))

Assertion failed.

3   Fail
y_correct = 0; assert(isequal(dog,y_correct))

Assertion failed.

4   Pass
y_correct = true; assert(isequal(dog,y_correct))

5   Fail
y_correct = false; assert(isequal(dog,y_correct))

Assertion failed.

6   Pass
y_correct = 1; assert(isequal(dog,y_correct))

7   Fail
y_correct = 42; assert(isequal(dog,y_correct))

Assertion failed.

8   Fail
y_correct = pi; assert(isequal(dog,y_correct))

Assertion failed.

9   Fail
y_correct = 'pie'; assert(isequal(dog,y_correct))

Assertion failed.

10   Pass
y_correct = true; assert(isequal(dog,y_correct))

11   Pass
y_correct = 1; assert(isequal(dog,y_correct))

12   Fail
y_correct = 0; assert(isequal(dog,y_correct))

Assertion failed.

13   Fail
y_correct = -1; assert(isequal(dog,y_correct))

Assertion failed.

14   Fail
y_correct = 'woof'; assert(isequal(dog('what is your name?'),y_correct))

Error using dog Too many input arguments. Error in Test14 (line 2) assert(isequal(dog('what is your name?'),y_correct))