/[libvob]/libvob/test/vob/api/vobcoorder.test
ViewVC logotype

Diff of /libvob/test/vob/api/vobcoorder.test

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

revision 1.10 by tjl, Wed Apr 23 16:44:25 2003 UTC revision 1.11 by tjl, Fri Apr 25 12:43:16 2003 UTC
# Line 30  from jarray import zeros Line 30  from jarray import zeros
30    
31  vs = getvs()  vs = getvs()
32  c = vs.coords  c = vs.coords
33    tmpsize = zeros(2, 'f')
34    
35  def testTransform():  def testTransform():
36    
# Line 294  def testInterpolateKeymap(): Line 295  def testInterpolateKeymap():
295      failUnlessEqual(interp[cs1], cs2_w)      failUnlessEqual(interp[cs1], cs2_w)
296      failUnlessEqual(interp[cs1_1], cs2_r)      failUnlessEqual(interp[cs1_1], cs2_r)
297    
298    def testConcatSq():
299        """Test that concatenating works with boxes
300    
301        fail: AWT
302        """
303        cs1 = vs.orthoBoxCS(0, "A", 1, 2, 3, 4, 5, 6, 7)
304        cs2 = vs.orthoBoxCS(0, "B", 11, 12, 13, 14, 15, 16, 17)
305        conc = vs.concatCS(cs1, "C", cs2)
306    
307        checkTrans(vs, conc, [0, 0, 0], [12*4+2, 13*5+3, 12])
308    
309        vs.coords.getSqSize(conc, tmpsize)
310        failUnlessEqual(tmpsize[0], 16)
311        failUnlessEqual(tmpsize[1], 17)
312    
313    
314    
315            

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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