@@ -0,0 +1,1621 @@
+import unittest%0Aimport main%0Aimport behavior%0Aimport robocup%0Aimport standard_play%0Aimport play%0Aimport math%0Aimport tactics.stopped.circle_near_ball%0Aimport constants%0A%0Aclass Moc_Ball:%0A%09def __init__(self, x, y):%0A%09%09self.pos = robocup.Point(x, y)%0A%0Aclass TestCircleNearBall(unittest.TestCase):%0A%09def __init__(self, *args, **kwargs):%0A%09%09super(TestCircleNearBall, self).__init__(*args, **kwargs)%0A%09%09#self.config = robocup.Configuration.FromRegisteredConfigurables()%0A%09%09#ball = Moc_Ball()%0A%0A%09def setUp(self):%0A%09%09self.circle_near_ball = tactics.stopped.circle_near_ball.CircleNearBall()%0A%09%09#self.system_state = robocup.SystemState()%0A%09%0A%09def test_get_circle_points(self):%0A%09%09print(%22%5Cn%22)%0A%09%09main.set_ball(Moc_Ball(0, constants.Field.Length / 2))%0A%0A%09%09print(%22ball pos: %22 + str(main.ball().pos))%0A%09%09print(%22Circle 1: %22 + str(self.circle_near_ball.get_circle_points(6)))%0A%09%09main.set_ball(Moc_Ball(2.5, constants.Field.Length / 2))%0A%09%09print(%22ball pos: %22 + str(main.ball().pos))%0A%09%09print(%22Circle 2: %22 + str(self.circle_near_ball.get_circle_points(6)))%0A%09# def test_execute_completed(self):%0A%0A%09def test_normalize_angle(self):%0A%09%09print(%22test_normalize_angle ran%22)%0A%09%09# angle = -math.pi%0A%09%09# while (angle %3C 0):%0A%09%09# %09self.assertEqual(self.circle_near_ball.normalize_angle(angle),%0A%09%09# %09%09angle + 2 * math.pi)%0A%09%09# %09angle += math.pi / 6%0A%09%09# angle = 0%0A%09%09# while (angle %3C= 2 * math.pi):%0A%09%09# %09self.assertEqual(angle, %0A%09%09# %09%09self.circle_near_ball.normalize_angle(angle))%0A%09%09# %09angle += math.pi / 6%0A%09%09# angle = 3 * math.pi%0A%09%09# while (angle %3C 4 * math.pi):%0A%09%09# %09self.assertEqual(angle - 2 * math.pi,%0A%09%09# %09%09self.circle_near_ball.normalize_angle(angle))%0A%09%09# %09angle += math.pi / 6%0A%0A

add test_circle_near_ball part 2