(grid, block_size, word_size, index)
| 307 | |
| 308 | # compares the contents of a cell along each grid axis |
| 309 | def check_cell(grid, block_size, word_size, index): |
| 310 | master = eval_index(grid, block_size, index) |
| 311 | for axis in range(word_size): |
| 312 | for value in range(block_size): |
| 313 | if index[axis] != value: |
| 314 | copy = list(index) |
| 315 | copy[axis] = value |
| 316 | slave = eval_index(grid, block_size, copy) |
| 317 | assert slave != master, 'Cell not unique along axis!' |
| 318 | |
| 319 | # grid |
| 320 | # - grid object to be accessed and evaluated |
no test coverage detected