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 | 1460 corner = self.coords2index(0, 0) 1468 corner = self.coords2index(0, 0) 1473 assert self.coords2index(1, 2) in succs[corner] 1474 assert self.coords2index(2, 1) in succs[corner] 1480 this = self.coords2index(i, j) 1481 final = self.coords2index(3-i, 3-j) 1555 def coords2index(self, i, j): member in Knights 1568 c2i = self.coords2index
|