Skip to content

Commit

Permalink
Add tolerance to test_two_vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hynes committed Mar 6, 2019
1 parent baf54a8 commit 8aa3e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/property/objects/test_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def test_scale(vector, scalar):
@given(st_vector_nonzero(), st_vector_nonzero())
def test_two_vectors(vector_a, vector_b):

is_perpendicular = vector_a.is_perpendicular(vector_b)
is_parallel = vector_a.is_parallel(vector_b)
is_perpendicular = vector_a.is_perpendicular(vector_b, atol=ATOL)
is_parallel = vector_a.is_parallel(vector_b, atol=ATOL)

# Two non-zero vectors cannot be both perpendicular and parallel.
assert not (is_perpendicular and is_parallel)
Expand Down

0 comments on commit 8aa3e0e

Please sign in to comment.