Added solution for "Day 23: A Long Walk", part 2

This commit is contained in:
2024-09-22 23:54:45 +02:00
parent b5576c66f1
commit e7285e88b5
3 changed files with 275 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
{
Solutions to the Advent Of Code.
Copyright (C) 2023 Stefan Müller
Copyright (C) 2023-2024 Stefan Müller
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -33,6 +33,7 @@ type
function CreateSolver: ISolver; override;
published
procedure TestPart1;
procedure TestPart2;
end;
implementation
@@ -49,6 +50,11 @@ begin
AssertEquals(94, FSolver.GetResultPart1);
end;
procedure TLongWalkExampleTestCase.TestPart2;
begin
AssertEquals(154, FSolver.GetResultPart2);
end;
initialization
RegisterTest('TLongWalk', TLongWalkExampleTestCase);