Searched refs:coords2index (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_generators.py | 1182 corner = self.coords2index(0, 0) 1190 corner = self.coords2index(0, 0) 1195 assert self.coords2index(1, 2) in succs[corner] 1196 assert self.coords2index(2, 1) in succs[corner] 1202 this = self.coords2index(i, j) 1203 final = self.coords2index(3-i, 3-j) 1277 def coords2index(self, i, j): member in Knights 1290 c2i = self.coords2index
|
/external/python/cpython3/Lib/test/ |
D | test_generators.py | 1478 corner = self.coords2index(0, 0) 1486 corner = self.coords2index(0, 0) 1491 assert self.coords2index(1, 2) in succs[corner] 1492 assert self.coords2index(2, 1) in succs[corner] 1498 this = self.coords2index(i, j) 1499 final = self.coords2index(3-i, 3-j) 1573 def coords2index(self, i, j): member in Knights 1586 c2i = self.coords2index
|