(table, x, y)
| 372 | } |
| 373 | |
| 374 | function findCell(table, x, y) { |
| 375 | for (let i = 0; i < table.length; i++) { |
| 376 | let row = table[i]; |
| 377 | for (let j = 0; j < row.length; j++) { |
| 378 | let cell = row[j]; |
| 379 | if (cell.x === x && cell.y === y) { |
| 380 | return cell; |
| 381 | } |
| 382 | } |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | function checkExpectation(actualCell, expectedCell, x, y, actualTable) { |
| 387 | if (typeof expectedCell === 'string') { |
no outgoing calls
no test coverage detected
searching dependent graphs…