Skip to content

Commit

Permalink
Merge pull request #1 from TheGluck/filldedent
Browse files Browse the repository at this point in the history
Adds test
  • Loading branch information
vishalg2235 committed Dec 10, 2017
2 parents 4d60fcb + 33415b5 commit 82f9445
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sympy/geometry/tests/test_line.py
Expand Up @@ -33,7 +33,7 @@ def warn_with_traceback(message, category, filename, lineno, file=None, line=Non


warnings.showwarning = warn_with_traceback
warnings.simplefilter('always', UserWarning) # make sure to show warnings every time they occurr
warnings.simplefilter('always', UserWarning) # make sure to show warnings every time they occur


def feq(a, b):
Expand Down Expand Up @@ -76,6 +76,12 @@ def test_arbitrary_point():
assert Segment3D(Point3D(x1, x1, x1), Point3D(y1, y1, y1)).length == sqrt(3) * sqrt((x1 - y1) ** 2)
assert Segment3D((1, 1, 1), (2, 3, 4)).arbitrary_point() == \
Point3D(t + 1, 2 * t + 1, 3 * t + 1)
try:
Line((x,1),(2,3)).arbitrary_point(x)
except ValueError:
assert True
except BaseException:
assert False


def test_are_concurrent_2d():
Expand Down

0 comments on commit 82f9445

Please sign in to comment.