Exemplo n.º 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))
Exemplo n.º 2
0
 def testSecondCoordinate(self):
     cc = Chaincode([0, 0], "0023")
     second = [-2, 0]
     self.failUnless(cc.matchany(second, 2))
Exemplo n.º 3
0
 def testSecondCoordinateFails(self):
     cc = Chaincode([1, 0], "0023")
     second = [-2, 0]
     self.assertFalse(cc.matchany(second, 2))
Exemplo n.º 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))
Exemplo n.º 5
0
 def testSecondCoordinate(self):
     cc = Chaincode([0, 0], "0023")
     second = [-2, 0]
     self.assertTrue(cc.matchany(second, 2))
Exemplo n.º 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))
Exemplo n.º 7
0
 def testSecondCoordinate(self):
     cc = Chaincode([0, 0], "0023")
     second = [-2, 0]
     self.assertTrue(cc.matchany(second, 2))
Exemplo n.º 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))
Exemplo n.º 9
0
 def testSecondCoordinate(self):
     cc = Chaincode([0, 0], "0023")
     second = [-2, 0]
     self.failUnless(cc.matchany(second, 2))