Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Commit 5a45376

Browse files
committed
Added tests
1 parent c982df0 commit 5a45376

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/test/test_animate.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ..animate import Coord, vector, Motion, Direction
1+
from ..animate import Coord, vector, Direction
22

33
coord1 = Coord(1, 1)
44
coord2 = Coord(1, 1)
@@ -44,3 +44,11 @@ def test_direction():
4444
assert Direction.LEFT.value == Direction.LEFT + Coord(0, 0)
4545
assert Direction.RIGHT.value == Direction.RIGHT + Coord(0, 0)
4646
assert Direction.DOWN.value == Direction.DOWN + Coord(0, 0)
47+
48+
49+
def test_vector():
50+
start = Coord(0, 0)
51+
end = start + 50
52+
vec = vector(start, end)
53+
assert vec[0] == start
54+
assert vec[-1] == end

0 commit comments

Comments
 (0)