/[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.7 by benja, Sun Feb 23 23:44:56 2003 UTC revision 1.8 by benja, Sun Feb 23 23:59:17 2003 UTC
# Line 72  def testConnectedTwoWays(): Line 72  def testConnectedTwoWays():
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():

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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