Skip to content

Commit

Permalink
Improve test coverage for point.py
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Aug 4, 2018
1 parent a121a24 commit 0e2188e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diofant/geometry/tests/test_point.py
Expand Up @@ -64,6 +64,7 @@ def test_point():
p1_1 = Point(x1, x1)
p1_2 = Point(y2, y2)
p1_3 = Point(x1 + 1, x1)
assert Point.is_collinear() is False
assert Point.is_collinear(p3)
assert Point.is_collinear(p3, p4)
assert Point.is_collinear(p3, p4, p1_1, p1_2)
Expand All @@ -87,6 +88,7 @@ def test_point():
assert Point.is_concyclic(p2_1, p2_2, p2_3, p2_4)
assert Point.is_concyclic(p2_1, p2_2, p2_3, p2_5) is False
assert Point.is_concyclic(p4, p4 * 2, p4 * 3) is False
pytest.raises(TypeError, lambda: Point.is_concyclic(p2_1, "123"))

assert p4.scale(2, 3) == Point(2, 3)
assert p3.scale(2, 3) == p3
Expand Down

0 comments on commit 0e2188e

Please sign in to comment.