implement SudokuSolver.checkColPlacement() method and wrote unit tests for method

This commit is contained in:
StevanFreeborn
2022-05-20 23:23:35 -05:00
parent cf287074fe
commit 2d815af9b8
2 changed files with 81 additions and 3 deletions
+24
View File
@@ -58,5 +58,29 @@ suite('UnitTests', () => {
});
test('checkColPlacement(puzzleString, row, column, value) valid column placement', (done) => {
const input = puzzlesAndSolutions[0][0];
const row = 'A';
const column = '2';
const value = '5';
assert.equal(solver.checkColPlacement(input, row, column, value), true);
done();
});
test('checkColPlacement(puzzleString, row, column, value) invalid column placement', (done) => {
const input = puzzlesAndSolutions[0][0];
const row = 'A';
const column = '2';
const value = '6';
assert.equal(solver.checkColPlacement(input, row, column, value), false);
done();
});
});