Cody

Solution 1811832

Submitted on 10 May 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   Pass
filetext = fileread('howManyWays.m'); assert(isempty(strfind(filetext, 'assert'))) assert(isempty(strfind(filetext, 'echo')))

2   Fail
x = [1 1 1 1]; y_correct = 1; assert(isequal(howManyWays(x),y_correct))

ans = 1

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test2 (line 3) assert(isequal(howManyWays(x),y_correct))

3   Fail
x = [1 1 1 10]; y_correct = 3; %[14,32,50] assert(isequal(howManyWays(x),y_correct))

ans = 6

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test3 (line 3) assert(isequal(howManyWays(x),y_correct))

4   Fail
x = [12 24 24 30]; y_correct = 5; %[102,114,126,138,150] assert(isequal(howManyWays(x),y_correct))

ans = 10

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test4 (line 3) assert(isequal(howManyWays(x),y_correct))

5   Fail
x = [22 34 34 43]; y_correct = 6; %[155 167 179 185 197 215] assert(isequal(howManyWays(x),y_correct))

ans = 13

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test5 (line 3) assert(isequal(howManyWays(x),y_correct))

6   Fail
x = [6 6 10 12]; y_correct = 7; %[36 40 44 48 52 56 60] assert(isequal(howManyWays(x),y_correct))

ans = 14

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test6 (line 3) assert(isequal(howManyWays(x),y_correct))

7   Fail
x = [6 6 7 8]; y_correct = 8; %[32 33 34 35 36 37 38 40] assert(isequal(howManyWays(x),y_correct))

ans = 10

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test7 (line 3) assert(isequal(howManyWays(x),y_correct))

8   Fail
x = [3 4 9 9]; y_correct = 9; assert(isequal(howManyWays(x),y_correct))

ans = 12

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test8 (line 3) assert(isequal(howManyWays(x),y_correct))

9   Fail
x = [4 6 8 11]; y_correct = 10; assert(isequal(howManyWays(x),y_correct))

ans = 23

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test9 (line 3) assert(isequal(howManyWays(x),y_correct))

10   Fail
x = [1 5 6 7]; y_correct = 13; assert(isequal(howManyWays(x),y_correct))

ans = 17

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test10 (line 3) assert(isequal(howManyWays(x),y_correct))

11   Fail
x = [1 2 5 8]; y_correct = 14; assert(isequal(howManyWays(x),y_correct))

ans = 21

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test11 (line 3) assert(isequal(howManyWays(x),y_correct))

12   Fail
x = [1 2 5 10]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 30

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test12 (line 3) assert(isequal(howManyWays(x),y_correct))

13   Fail
x = [1 2 5 11]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 28

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test13 (line 3) assert(isequal(howManyWays(x),y_correct))

14   Fail
x = [2 5 9 11]; y_correct = 12; assert(isequal(howManyWays(x),y_correct))

ans = 25

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test14 (line 3) assert(isequal(howManyWays(x),y_correct))

15   Fail
x = [3 8 13 16]; y_correct = 11; assert(isequal(howManyWays(x),y_correct))

ans = 25

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test15 (line 3) assert(isequal(howManyWays(x),y_correct))

16   Fail
x = [7 13 15 16]; y_correct = 11; assert(isequal(howManyWays(x),y_correct))

ans = 23

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test16 (line 3) assert(isequal(howManyWays(x),y_correct))

17   Fail
x = [3 34 43 47]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 34

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test17 (line 3) assert(isequal(howManyWays(x),y_correct))

18   Fail
x = [21 35 38 39]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 33

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test18 (line 3) assert(isequal(howManyWays(x),y_correct))

19   Fail
x = [5 10 34 36]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 36

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test19 (line 3) assert(isequal(howManyWays(x),y_correct))

20   Fail
x = [ 55 97 154 193]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 36

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test20 (line 3) assert(isequal(howManyWays(x),y_correct))

21   Fail
x = [107 116 165 170]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 36

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test21 (line 3) assert(isequal(howManyWays(x),y_correct))

22   Fail
x = [329 592 611 641]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 36

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test22 (line 3) assert(isequal(howManyWays(x),y_correct))

23   Fail
x = [3259 4164 5259 6544]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 32

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test23 (line 3) assert(isequal(howManyWays(x),y_correct))

24   Fail
x = [5947 6267 8477 9254]; y_correct = 15; assert(isequal(howManyWays(x),y_correct))

ans = 36

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test24 (line 3) assert(isequal(howManyWays(x),y_correct))

25   Fail
x = [726 871 871 964]; y_correct = 6; %[4158 4303 4448 4489 4634 4820] assert(isequal(howManyWays(x),y_correct))

ans = 13

Output argument "y" (and maybe others) not assigned during call to "howManyWays". Error in Test25 (line 3) assert(isequal(howManyWays(x),y_correct))

Suggested Problems

More from this Author59