Cody

Solution 2171026

Submitted on 23 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
a={'Ra1','Ka7'} assert(isequal(castling_01(a),0))

a = 1×2 cell array {'Ra1'} {'Ka7'} S1 = 0 0 0 0 0 0 0 0 0 S2 = 1 0 0 0 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test1 (line 2) assert(isequal(castling_01(a),0))

2   Fail
a={'Ra1','Rh1'} assert(isequal(castling_01(a),0))

a = 1×2 cell array {'Ra1'} {'Rh1'} S1 = 0 0 0 0 0 0 0 0 0 S2 = 1 0 0 0 0 0 0 1 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test2 (line 2) assert(isequal(castling_01(a),0))

3   Fail
a={'Ra1','Rh1','Kh8'} assert(isequal(castling_01(a),0))

a = 1×3 cell array {'Ra1'} {'Rh1'} {'Kh8'} S1 = 0 0 0 0 0 0 0 1 0 S2 = 1 0 0 0 0 0 0 1 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test3 (line 2) assert(isequal(castling_01(a),0))

4   Fail
a={'Ra1','Rc1','Kh5'} assert(isequal(castling_01(a),0))

a = 1×3 cell array {'Ra1'} {'Rc1'} {'Kh5'} S1 = 0 0 0 0 0 0 0 0 0 S2 = 1 0 1 0 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test4 (line 2) assert(isequal(castling_01(a),0))

5   Fail
a={'Ra1','Rh1','Ke1'} assert(isequal(castling_01(a),1))

a = 1×3 cell array {'Ra1'} {'Rh1'} {'Ke1'} S1 = 0 0 0 0 0 0 0 0 0 S2 = 1 0 0 0 1 0 0 1 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test5 (line 2) assert(isequal(castling_01(a),1))

6   Fail
a={'Ra1','Rh1','Ke1'} assert(isequal(castling_01(a),1))

a = 1×3 cell array {'Ra1'} {'Rh1'} {'Ke1'} S1 = 0 0 0 0 0 0 0 0 0 S2 = 1 0 0 0 1 0 0 1 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test6 (line 2) assert(isequal(castling_01(a),1))

7   Fail
a={'Rh1','Ke1'} assert(isequal(castling_01(a),1))

a = 1×2 cell array {'Rh1'} {'Ke1'} S1 = 0 0 0 0 0 0 0 0 0 S2 = 0 0 0 0 1 0 0 1 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test7 (line 2) assert(isequal(castling_01(a),1))

8   Fail
a={'Rh5','Ke5'} assert(isequal(castling_01(a),0))

a = 1×2 cell array {'Rh5'} {'Ke5'} S1 = 0 0 0 0 0 0 0 0 0 S2 = 0 0 0 0 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test8 (line 2) assert(isequal(castling_01(a),0))

9   Fail
a={'Ra8','Ke8'} assert(isequal(castling_01(a),1))

a = 1×2 cell array {'Ra8'} {'Ke8'} S1 = 1 0 0 0 1 0 0 0 0 S2 = 0 0 0 0 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test9 (line 2) assert(isequal(castling_01(a),1))

10   Fail
a={'Rd8','Rh8','Ke8'} assert(isequal(castling_01(a),1))

a = 1×3 cell array {'Rd8'} {'Rh8'} {'Ke8'} S1 = 0 0 0 1 1 0 0 1 0 S2 = 0 0 0 0 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test10 (line 2) assert(isequal(castling_01(a),1))

11   Fail
a={'Rh8','Kd8'} assert(isequal(castling_01(a),0))

a = 1×2 cell array {'Rh8'} {'Kd8'} S1 = 0 0 0 1 0 0 0 1 0 S2 = 0 0 0 0 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "castling_01". Error in Test11 (line 2) assert(isequal(castling_01(a),0))