Cody

Solution 354767

Submitted on 18 Nov 2013 by J.R.! Menzinger
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))

ans = @evalin ans = 1

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

ans = @evalin ans = 0

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

ans = @evalin ans = 0

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

ans = @evalin ans = 1

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

ans = @evalin ans = 0

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

ans = @evalin ans = 1

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

ans = @evalin ans = 42

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

ans = @evalin ans = 3.1416

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

ans = @evalin ans = pie

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

ans = @evalin ans = 1

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

ans = @evalin ans = 1

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

ans = @evalin ans = 0

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

ans = @evalin ans = -1

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

ans = @evalin ans = woof