/[gzz]/gzz/test/gzz/vob/vobcoorder.test
ViewVC logotype

Diff of /gzz/test/gzz/vob/vobcoorder.test

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

revision 1.9 by tjl, Thu Dec 19 23:06:00 2002 UTC revision 1.10 by tjl, Fri Dec 20 16:00:21 2002 UTC
# Line 114  def testBoxes(): Line 114  def testBoxes():
114      failUnlessEqual(-1, c.getCSAt(0, 275, 165.5, None))      failUnlessEqual(-1, c.getCSAt(0, 275, 165.5, None))
115      failUnlessEqual(-1, c.getCSAt(0, 265, 175.5, None))      failUnlessEqual(-1, c.getCSAt(0, 265, 175.5, None))
116    
117    def testInterpolateHierarchy():
118        """Test that vobs interpolate right in hierarchies.
119        """
120        cs1 = vs.translateCS(0, "A", 100, 100, 0)
121        cs1_1 = vs.orthoCS(cs1, "B", 0, 50, 50, 1, 1)
122    
123        vs2 = getvs()
124        cs2_dummy = vs2.translateCS(0, "C", 0, 0, 0)
125        cs2 = vs2.translateCS(0, "A", 100, 100, 0)
126        cs2_1 = vs2.orthoCS(cs2, "B", 0, 100, 100, 1, 1)
127    
128        interp = vs.matcher.interpList(vs2.matcher)
129        interp[0] = len(interp)
130    
131        checkInterp(vs, vs2, interp , .5, cs1_1, [0, 0, 0], [175, 175, 0])
132    
133  def testInterpolateAlways():  def testInterpolateAlways():
134      """Test that vobs always get interpolated, even when hierarchy changes.      """Test that vobs always get interpolated, even when hierarchy changes.
135      """      """

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

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