Cody

Problem 2002. Schrödinger dog

Solution 354032

Submitted on 17 Nov 2013
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   Pass
%% y_correct = 0; assert(isequal(dog,y_correct))

3   Pass
%% y_correct = 0; assert(isequal(dog,y_correct))

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

5   Pass
%% y_correct = false; assert(isequal(dog,y_correct))

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

7   Pass
%% y_correct = 42; assert(isequal(dog,y_correct))

8   Pass
%% y_correct = pi; assert(isequal(dog,y_correct))

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

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

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

12   Pass
%% y_correct = 0; assert(isequal(dog,y_correct))

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

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

Error: Too many input arguments.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!