8000 init tested · dumbledad/adventofcode@cec2f72 · GitHub
[go: up one dir, main page]

Skip to content

Commit cec2f72

Browse files
author
Tim Regan
committed
init tested
1 parent 81e3697 commit cec2f72

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

2022/test_day15.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from day15 import Tunnels
2+
3+
filename = 'inputs/2022/day15-test.txt'
4+
5+
def test_init():
6+
tunnels = Tunnels(filename)
7+
assert tunnels.data
8+
assert tunnels.sensors[4]['distance'] == 4

0 commit comments

Comments
 (0)
0