summaryrefslogtreecommitdiffstats
path: root/day5/test_init.py
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2021-12-05 23:44:01 +0100
committerGravatar Tom van der Lee <tom@vanderlee.io>2021-12-05 23:44:01 +0100
commit6ddbc42f39e3f4afddef2bd2631d2e08febbdd24 (patch)
tree7a7a4ba8bc656836935446019ecf22f4e8e5cd89 /day5/test_init.py
parent372f7ec0a7e8c3358129f200f5b5b74e79ae83ff (diff)
download2021-6ddbc42f39e3f4afddef2bd2631d2e08febbdd24.tar.gz
2021-6ddbc42f39e3f4afddef2bd2631d2e08febbdd24.tar.bz2
2021-6ddbc42f39e3f4afddef2bd2631d2e08febbdd24.zip
Part 2
Diffstat (limited to 'day5/test_init.py')
-rw-r--r--day5/test_init.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/day5/test_init.py b/day5/test_init.py
index 5096a60..a4d7bff 100644
--- a/day5/test_init.py
+++ b/day5/test_init.py
@@ -7,7 +7,19 @@ def test_points_in_vector():
7 ] 7 ]
8 8
9 assert points_in_vector(((9,7), (7,7))) == [ 9 assert points_in_vector(((9,7), (7,7))) == [
10 (7, 7), (8, 7), (9, 7) 10 (9, 7), (8, 7), (7, 7)
11 ]
12
13 assert points_in_vector(((1,1), (3,3)), False) == []
14
15 assert points_in_vector(((1,1), (3,3)), True) == [
16 (1, 1), (2, 2), (3, 3)
17 ]
18
19 assert points_in_vector(((9,7), (7,9)), False) == []
20
21 assert points_in_vector(((9,7), (7,9)), True) == [
22 (9, 7), (8, 8), (7, 9),
11 ] 23 ]
12 24
13 25