/[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.3 by benja, Sun Feb 23 19:44:24 2003 UTC revision 1.4 by benja, Sun Feb 23 21:11:35 2003 UTC
# Line 64  def testGetConnections(): Line 64  def testGetConnections():
64      assert list(c.getConnections(-1)) == [n[2]]      assert list(c.getConnections(-1)) == [n[2]]
65    
66    
67    def testRotationIndex():
68        c.set(n[1], n[2])
69        assert c.getRotationIndex() == 0
70    
71        c.set(n[2], n[5])
72        assert c.getRotationIndex() == 2
73    
74        c.set(n[2], n[9])
75        assert c.getRotationIndex() == 6
76    
77        c.set(n[4], None)
78        assert c.getRotationIndex() == 0
79    
80    
81  def testRotateMove():  def testRotateMove():
82      c.set(n[2], n[5])      c.set(n[2], n[5])
83      c.rotate(1)      c.rotate(1)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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