[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob/test/vob/api vobcoorder.test
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] libvob/test/vob/api vobcoorder.test |
Date: |
Thu, 31 Jul 2003 04:49:09 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Branch:
Changes by: Tuomas J. Lukka <address@hidden> 03/07/31 04:49:09
Modified files:
test/vob/api : vobcoorder.test
Log message:
Crashing test
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/test/vob/api/vobcoorder.test.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
Patches:
Index: libvob/test/vob/api/vobcoorder.test
diff -u libvob/test/vob/api/vobcoorder.test:1.12
libvob/test/vob/api/vobcoorder.test:1.13
--- libvob/test/vob/api/vobcoorder.test:1.12 Thu May 15 13:19:03 2003
+++ libvob/test/vob/api/vobcoorder.test Thu Jul 31 04:49:09 2003
@@ -313,7 +313,27 @@
failUnlessEqual(tmpsize[0], 16)
failUnlessEqual(tmpsize[1], 17)
+def testInvalidCS():
+ """Test that invalid coordinate systems won't crash.
+ """
+ v = vob.vobs.RectBgVob()
+ vs = getvs()
+ for i in range(0, 100):
+ cs1 = vs.orthoBoxCS(0, "A", 1, 2, 3, 4, 5, 6, 7)
+ cs2 = vs.orthoBoxCS(0, "B", 11, 12, 13, 14, 15, 16, 17)
-
+ vs.put(v, cs1)
+ render(vs)
+ vs.put(v, cs2)
+ render(vs)
+ vs.put(v, -1)
+ render(vs)
+ vs.put(v, cs2 + 100)
+ render(vs)
+ vs.put(v, cs1 + 1)
+ render(vs)
+
+
+
# : vim: set syntax=python :
- [Gzz-commits] libvob/test/vob/api vobcoorder.test,
Tuomas J. Lukka <=