Exemple #1
0
 def test_stationary(self):
     a = Dummy(100, 0, 100, 0, 1)
     b = Dummy(0, 100, 100, 0, 1)
     self.failUnless(collision.collides(a, b))
Exemple #2
0
 def test_miss(self):
     a = Dummy(0, 0, 100, 75, 1)
     b = Dummy(0, 100, 75, 0, 1)
     self.failIf(collision.collides(a, b))
Exemple #3
0
 def test_cross(self):
     a = Dummy(0, 0, 100, 100, 1)
     b = Dummy(0, 100, 100, 0, 1)
     self.failUnless(collision.collides(a, b))
Exemple #4
0
 def test_stationary(self):
     a = Dummy(100, 0, 100, 0, 1)
     b = Dummy(0, 100, 100, 0, 1)
     self.failUnless(collision.collides(a, b))
Exemple #5
0
 def test_miss(self):
     a = Dummy(0, 0, 100, 75, 1)
     b = Dummy(0, 100, 75, 0, 1)
     self.failIf(collision.collides(a, b))
Exemple #6
0
 def test_cross(self):
     a = Dummy(0, 0, 100, 100, 1)
     b = Dummy(0, 100, 100, 0, 1)
     self.failUnless(collision.collides(a, b))