diff options
| author | 2021-12-05 23:05:13 +0100 | |
|---|---|---|
| committer | 2021-12-05 23:05:13 +0100 | |
| commit | 372f7ec0a7e8c3358129f200f5b5b74e79ae83ff (patch) | |
| tree | 15b662aefd79ed589bde8cf56018b6ee801327e0 /day5/test_init.py | |
| parent | 5ba784ae1220ec930ffce9ea1ccbb1d6411f841e (diff) | |
| download | 2021-372f7ec0a7e8c3358129f200f5b5b74e79ae83ff.tar.gz 2021-372f7ec0a7e8c3358129f200f5b5b74e79ae83ff.tar.bz2 2021-372f7ec0a7e8c3358129f200f5b5b74e79ae83ff.zip | |
Day 5 part 1
Diffstat (limited to 'day5/test_init.py')
| -rw-r--r-- | day5/test_init.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/day5/test_init.py b/day5/test_init.py new file mode 100644 index 0000000..5096a60 --- /dev/null +++ b/day5/test_init.py | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | from day5 import points_in_vector | ||
| 2 | |||
| 3 | |||
| 4 | def test_points_in_vector(): | ||
| 5 | assert points_in_vector(((1,1), (1,3))) == [ | ||
| 6 | (1, 1), (1, 2), (1, 3) | ||
| 7 | ] | ||
| 8 | |||
| 9 | assert points_in_vector(((9,7), (7,7))) == [ | ||
| 10 | (7, 7), (8, 7), (9, 7) | ||
| 11 | ] | ||
| 12 | |||
| 13 | |||
| 14 | |||
| 15 | |||
