Cody

Solution 2158517

Submitted on 13 Mar 2020
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
bina=@(x,y)x+y; TF_correct = 1; assert(isequal(commute(bina),TF_correct))

ans = 5

Output argument "TF" (and maybe others) not assigned during call to "commute". Error in Test1 (line 3) assert(isequal(commute(bina),TF_correct))

2   Fail
bina=@(x,y)x-y; TF_correct = 0; assert(isequal(commute(bina),TF_correct))

ans = -1

Output argument "TF" (and maybe others) not assigned during call to "commute". Error in Test2 (line 3) assert(isequal(commute(bina),TF_correct))

3   Fail
bina=@(x,y)x*y; TF_correct = 1; assert(isequal(commute(bina),TF_correct))

ans = 6

Output argument "TF" (and maybe others) not assigned during call to "commute". Error in Test3 (line 3) assert(isequal(commute(bina),TF_correct))

4   Fail
bina=@(x,y)x/y; TF_correct = 0; assert(isequal(commute(bina),TF_correct))

ans = 0.6667

Output argument "TF" (and maybe others) not assigned during call to "commute". Error in Test4 (line 3) assert(isequal(commute(bina),TF_correct))