Implement 2019 day 16 part 1

This commit is contained in:
2021-02-02 19:12:10 +01:00
parent 165159cba9
commit 2d561eab7d
2 changed files with 48 additions and 0 deletions

15
2019/tests/day16.py Normal file
View File

@@ -0,0 +1,15 @@
import pytest
from aoc2019.day16 import simulate
@pytest.mark.parametrize('data,correct', [
('80871224585914546619083218645595', '24176176'),
('19617804207202209144916044189917', '73745418'),
('69317163492948606335995924319873', '52432133'),
])
def test_sample_part1(data: str, correct: str):
numbers = [int(c) for c in data]
assert simulate(numbers) == correct
pass