Additional tests

This commit is contained in:
Angelos Chalaris
2018-11-01 14:47:28 +02:00
parent a097c3de36
commit 7f019cf3ed
4 changed files with 12 additions and 0 deletions

View File

@ -7,3 +7,6 @@ test('initialize2DArray is a Function', () => {
test('Initializes a 2D array of given width and height and value', () => {
expect(initialize2DArray(2, 2, 0)).toEqual([[0, 0], [0, 0]]);
});
test('Initializes a 2D array of given width and height and value (no fill)', () => {
expect(initialize2DArray(2, 2)).toEqual([[null, null], [null, null]]);
});