Skip to content

Commit

Permalink
Merge pull request #13316 from cbm755/segment_nonreal_sym
Browse files Browse the repository at this point in the history
Segment: add test for nonreal symbols
  • Loading branch information
smichr committed Sep 15, 2017
2 parents a90f702 + 5a7bb5b commit dbde056
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sympy/geometry/tests/test_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ def test_contains():
assert len(w) == 1


def test_contains_nonreal_symbols():
u, v, w, z = symbols('u, v, w, z')
l = Segment(Point(u, w), Point(v, z))
p = Point(2*u/3 + v/3, 2*w/3 + z/3)
assert l.contains(p)


def test_distance_2d():
p1 = Point(0, 0)
p2 = Point(1, 1)
Expand Down

0 comments on commit dbde056

Please sign in to comment.