/[gzz]/gzz/lava/test/gzz/loom/Cursor.test
ViewVC logotype

Diff of /gzz/lava/test/gzz/loom/Cursor.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by benja, Sun Feb 23 15:17:36 2003 UTC revision 1.2 by benja, Sun Feb 23 16:50:27 2003 UTC
# Line 55  def testGetPoswardConnections(): Line 55  def testGetPoswardConnections():
55      assert list(c.getPoswardConnections()) == n[3:]      assert list(c.getPoswardConnections()) == n[3:]
56    
57    
58  def testRotate():  def testRotateMove():
59      c.set(n[2], n[5])      c.set(n[2], n[5])
60      c.rotate(1)      c.rotate(1)
61      assert c.focus == n[2] and c.rotation == n[6]      assert c.focus == n[2] and c.rotation == n[6]
# Line 77  def testRotate(): Line 77  def testRotate():
77      c.set(n[2], n[3])      c.set(n[2], n[3])
78      c.rotate(-1)      c.rotate(-1)
79      assert c.focus == n[2] and c.rotation == n[3]      assert c.focus == n[2] and c.rotation == n[3]
80    
81        c.move(-1)
82        assert c.focus == n[1] and c.rotation == n[2]
83        c.move(-1)
84        assert c.focus == n[0] and c.rotation == n[1]
85        c.move(1)
86        assert c.focus == n[1] and c.rotation == n[2]
87        c.move(1)
88        assert c.focus == n[2] and c.rotation == n[3]

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26