예제 #1
0
 def testScaleEnd(self):
     cc = Chaincode([1.2, 3],"0723", xdelta=2.629, ydelta=2.629)
     end = [-1.429, 0.371]
     self.assertTrue(cc.matchany(end, -1))
예제 #2
0
 def testSecondCoordinate(self):
     cc = Chaincode([0, 0], "0023")
     second = [-2, 0]
     self.failUnless(cc.matchany(second, 2))
예제 #3
0
 def testSecondCoordinateFails(self):
     cc = Chaincode([1, 0], "0023")
     second = [-2, 0]
     self.assertFalse(cc.matchany(second, 2))
예제 #4
0
 def testScaleSecond(self):
     cc = Chaincode([0, 0], "0723", xdelta=0.5, ydelta=0.5)
     second = [-1, 0.5]
     self.assertTrue(cc.matchany(second, 2))
예제 #5
0
 def testSecondCoordinate(self):
     cc = Chaincode([0, 0], "0023")
     second = [-2, 0]
     self.assertTrue(cc.matchany(second, 2))
예제 #6
0
 def testScaleSecond(self):
     cc = Chaincode([0, 0], "0723", xdelta=0.5, ydelta=0.5)
     second = [-1, 0.5]
     self.assertTrue(cc.matchany(second, 2))
예제 #7
0
 def testSecondCoordinate(self):
     cc = Chaincode([0, 0], "0023")
     second = [-2, 0]
     self.assertTrue(cc.matchany(second, 2))
예제 #8
0
 def testScaleSecond(self):
     cc = Chaincode([0, 0], "0723", xdelta=0.5, ydelta=0.5)
     second = [-1, 0.5]
     self.failUnless(cc.matchany(second, 2))
예제 #9
0
 def testSecondCoordinate(self):
     cc = Chaincode([0, 0], "0023")
     second = [-2, 0]
     self.failUnless(cc.matchany(second, 2))