diff options
Diffstat (limited to 'day9/test_init.py')
| -rw-r--r-- | day9/test_init.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/day9/test_init.py b/day9/test_init.py new file mode 100644 index 0000000..b36eed6 --- /dev/null +++ b/day9/test_init.py | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | import os.path | ||
| 3 | |||
| 4 | import day9 | ||
| 5 | |||
| 6 | |||
| 7 | def test_output_visualization(): | ||
| 8 | expected = "..##..\n" "...##.\n" ".####.\n" "....#.\n" "s###.." | ||
| 9 | |||
| 10 | assignment = day9.AssignmentOne(path=os.path.dirname(day9.__file__)) | ||
| 11 | unique_positions = assignment.unique_tail_positions( | ||
| 12 | input=assignment.read_input(True) | ||
| 13 | ) | ||
| 14 | assert expected == assignment.visualize(6, 5, unique_positions) | ||
