72 |
|
|
73 |
c.set(n[2], 1, n[5]) |
c.set(n[2], 1, n[5]) |
74 |
c.move(1) |
c.move(1) |
75 |
assert c.getRotationIndex() == 0 |
assert c.focus == n[5] and c.rotation == n[2] |
76 |
|
assert c.getRotationIndex() == 0 and c.dir == -1 |
77 |
|
|
78 |
c.rotate(1) |
c.rotate(1) |
79 |
assert c.getRotationIndex() == 1 |
assert c.focus == n[5] and c.rotation == n[2] |
80 |
|
assert c.getRotationIndex() == 1 and c.dir == 1 |
81 |
|
|
82 |
|
c.rotate(-1) |
83 |
|
assert c.focus == n[5] and c.rotation == n[0] |
84 |
|
assert c.getRotationIndex() == 0 and c.dir == 1 |
85 |
|
|
86 |
|
|
87 |
def testRotationIndex(): |
def testRotationIndex(): |