Exemple #1
0
 def test_returns_false_when_points_are_different_but_same_y_val(self):
     p1 = CollisionPointToPointTest.TestPoint()
     p1.x, p1.y = 3.0, 4.0
     p2 = CollisionPointToPointTest.TestPoint()
     p2.x, p2.y = 3.5, 4.0
     self.assertFalse(Game.collision_point_to_point(p1, p2))
Exemple #2
0
 def test_returns_true_when_points_are_the_same(self):
     p1 = CollisionPointToPointTest.TestPoint()
     p1.x, p1.y = 3.0, 4.0
     p2 = CollisionPointToPointTest.TestPoint()
     p2.x, p2.y = 3.0, 4.0
     self.assertTrue(Game.collision_point_to_point(p1, p2))
Exemple #3
0
 def test_returns_false_when_points_are_not_the_same(self):
     p1 = CollisionPointToPointTest.TestPoint()
     p1.x, p1.y = 3.0, 4.0
     p2 = CollisionPointToPointTest.TestPoint()
     p2.x, p2.y = 3.5, 4.5
     self.assertFalse(Game.collision_point_to_point(p1, p2))