Fix test case addidion when no other test cases exist

This commit is contained in:
akp 2023-12-10 13:12:52 +00:00
parent eb9f84f450
commit 68a68ac0da
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755

5
aoc
View file

@ -270,7 +270,10 @@ class CLI(object):
except FileNotFoundError:
pass
existing_tests[str(part)].append(
if (sp := str(part)) not in existing_tests:
existing_tests[sp] = []
existing_tests[sp].append(
{
"is": output,
"input": sys.stdin.read(),