@@ -0,0 +1,2257 @@
+# Defining tests for the TravisCI and Build Checking%0A# Tests are run everytime a Pull Request or a Commit is pushed to the GeoMath repo%0Afrom geomath import point as p%0Afrom geomath import line as l%0Afrom geomath import figure as f%0Aimport unittest%0A%0A%0Aclass PointTest(unittest.TestCase):%0A%0A    def test_distance(self):%0A        assert(p.Point(9, 8).distance(p.Point(1, 2)) == 10)%0A%0A    def test_midpoint(self):%0A        assert(str(p.Point(9, 8).midpoint(p.Point(1, 2))) == %22Point(5.0, 5.0)%22)%0A%0A    def test_quadrant(self):%0A        assert(p.Point(2, -8).quadrant() == 4)%0A%0A%0A# REMAKE%0A%0Aclass LineTest(unittest.TestCase):%0A    def test_instance_two_points(self):%0A        p1 = p.Point(2, 2)%0A        p2 = p.Point(4, 4)%0A        line = l.Line(p1, p2)%0A%0A        assert(str(line) == %22Line(Point(2, 2), Point(4, 4))%22)%0A%0A    def test_instance_equation(self):%0A        line = l.Line(%22-8x+6y-8=0%22)%0A%0A        assert(str(line) == %22A: -8 B: +6 C: -8%22)%0A%0A    def test_instance_one_point_and_slope(self):%0A        p1 = p.Point(4, 4.5)%0A        line = l.Line(p1, m=1)%0A%0A        assert(str(line) == %22Angular:1.0 Linear:0.5%22)%0A%0A    def test_line_equation(self):%0A        p1 = p.Point(2, 2)%0A        p2 = p.Point(4, 4)%0A        line = l.Line()%0A        line.create(p1, p2)%0A%0A        assert(type(line.equation()) == str)%0A%0A    def test_ACoefficient(self):%0A        p1 = p.Point(2, 2.5)%0A        p2 = p.Point(4, 4)%0A        line = l.Line()%0A        line.create(p1, p2)%0A%0A        assert(float(line.A) == (-1.5))%0A%0A    def test_b_coefficient(self):%0A        p1 = p.Point(2, 2.5)%0A        p2 = p.Point(4, 4)%0A        line = l.Line()%0A        line.create(p1, p2)%0A%0A        assert(float(line.B) == 2.0)%0A%0A    def test_c_coefficient(self):%0A        p1 = p.Point(2, 2.5)%0A        p2 = p.Point(4, 4)%0A        line = l.Line()%0A        line.create(p1, p2)%0A%0A        assert(float(line.C) == (-2.0))%0A%0A    def test_angular_coefficient(self):%0A        p1 = p.Point(2, 2.5)%0A        p2 = p.Point(4, 4)%0A        line = l.Line()%0A        line.create(p1, p2)%0A%0A        assert(float(line.Angular) == (0.75))%0A%0A    def test_linear_coefficient(self):%0A        p1 = p.Point(2, 2.5)%0A        p2 = p.Point(4, 4)%0A        line = l.Line()%0A        line.create(p1, p2)%0A%0A        assert(float(line.Linear) == (1.0))%0A%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Create tests.py