gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/lava/test/gzz/loom Cursor.test


From: Benja Fallenstein
Subject: [Gzz-commits] gzz/lava/test/gzz/loom Cursor.test
Date: Sun, 23 Feb 2003 18:59:17 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Benja Fallenstein <address@hidden>      03/02/23 18:59:17

Modified files:
        lava/test/gzz/loom: Cursor.test 

Log message:
        Test a little more

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/lava/test/gzz/loom/Cursor.test.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: gzz/lava/test/gzz/loom/Cursor.test
diff -u gzz/lava/test/gzz/loom/Cursor.test:1.7 
gzz/lava/test/gzz/loom/Cursor.test:1.8
--- gzz/lava/test/gzz/loom/Cursor.test:1.7      Sun Feb 23 18:44:56 2003
+++ gzz/lava/test/gzz/loom/Cursor.test  Sun Feb 23 18:59:17 2003
@@ -72,10 +72,16 @@
 
     c.set(n[2], 1, n[5])
     c.move(1)
-    assert c.getRotationIndex() == 0
+    assert c.focus == n[5] and c.rotation == n[2]
+    assert c.getRotationIndex() == 0 and c.dir == -1
 
     c.rotate(1)
-    assert c.getRotationIndex() == 1
+    assert c.focus == n[5] and c.rotation == n[2]
+    assert c.getRotationIndex() == 1 and c.dir == 1
+
+    c.rotate(-1)
+    assert c.focus == n[5] and c.rotation == n[0]
+    assert c.getRotationIndex() == 0 and c.dir == 1
 
 
 def testRotationIndex():




reply via email to

[Prev in Thread] Current Thread [Next in Thread]