Cody

Solution 1554381

Submitted on 8 Jun 2018
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
list = {[1 5; 2 3; 2 2; 3 4; 0 3], [0 4; 1 5; 2 2; 4 5; 4 6], [7 7; 3 8; 4 7; 5 9; 0 4]}; selections = [4 4 4]; assert(isequal(ChooseBestFittingDominoes(list),selections))

ans = datetime Friday, June 8, 2018 1:52:59.896 * STACK TRACE: Stack item number 1: file: '/users/mss.system.FYwZin/submission/ChooseBestFittingDominoes.m' name: 'ChooseBestFittingDominoes' line: 14 Stack item number 2: file: '/users/mss.system.FYwZin/ScoringEngineTestPoint1.m' name: 'ScoringEngineTestPoint1' line: 7 Stack item number 3: file: '/users/mss.system.FYwZin/solutionTest.m' name: 'solutionTest' line: 5 Stack item number 4: file: '/opt/mlsedu/matlab/R2018a/toolbox/matlab/testframework/unittest/ext/+matlab/+unittest/+internal/executeCodeBlock.m' name: 'executeCodeBlock' line: 11 ... etc. ~~~~~ list = 3×1 cell array {5×2 double} {5×2 double} {5×2 double} list{1} = 1 5 2 3 2 2 3 4 0 3 sz = 5 order = 4 4 4

2   Fail
list = {[1 4; 2 2; 1 1; 3 3],[1 2; 2 3],[2 2]}; selections = [3 1 1]; assert(isequal(ChooseBestFittingDominoes(list),selections))

ans = datetime Friday, June 8, 2018 1:52:59.983 * STACK TRACE: Stack item number 1: file: '/users/mss.system.FYwZin/submission/ChooseBestFittingDominoes.m' name: 'ChooseBestFittingDominoes' line: 14 Stack item number 2: file: '/users/mss.system.FYwZin/ScoringEngineTestPoint2.m' name: 'ScoringEngineTestPoint2' line: 5 Stack item number 3: file: '/users/mss.system.FYwZin/solutionTest.m' name: 'solutionTest' line: 7 Stack item number 4: file: '/opt/mlsedu/matlab/R2018a/toolbox/matlab/testframework/unittest/ext/+matlab/+unittest/+internal/executeCodeBlock.m' name: 'executeCodeBlock' line: 11 ... etc. ~~~~~ list = 1×3 cell array {4×2 double} {2×2 double} {1×2 double} list{1} = 1 4 2 2 1 1 3 3 sz = 4 order = 4 4 4

Assertion failed.