ben
/
aoc
1
0
Fork 0

fix test for 2023 day 6
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Ben Harris 2024-04-17 12:28:39 -04:00
parent 7b8614278d
commit a3fb4f2818
11 changed files with 69 additions and 76 deletions

View File

@ -10,7 +10,7 @@ public class Test2023
[DataRow(typeof(Day02), "2476", "54911")]
[DataRow(typeof(Day03), "522726", "81721933")]
[DataRow(typeof(Day04), "20117", "13768818")]
[DataRow(typeof(Day06), "505494", "2362299")]
[DataRow(typeof(Day06), "505494", "23632299")]
public void CheckAllDays(Type dayType, string part1, string part2) =>
Common.CheckDay(dayType, part1, part2);

View File

@ -14,21 +14,19 @@
</ItemGroup>
<ItemGroup>
<Using Include="AOC.Common" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Reflection" />
<Using Include="System.Text" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="AOC.Common"/>
<Using Include="System.Collections.Generic"/>
<Using Include="System.Collections.Immutable"/>
<Using Include="System.Reflection"/>
<Using Include="System.Text"/>
<Using Include="System.Text.RegularExpressions"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj" />
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="morelinq" Version="4.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="morelinq" Version="4.2.0"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
</ItemGroup>
</Project>

View File

@ -21,7 +21,6 @@
<Using Include="System.Text"/>
<Using Include="System.Text.RegularExpressions"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj"/>
</ItemGroup>

View File

@ -14,16 +14,15 @@
</ItemGroup>
<ItemGroup>
<Using Include="AOC.Common" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Reflection" />
<Using Include="System.Text" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="AOC.Common"/>
<Using Include="System.Collections.Generic"/>
<Using Include="System.Collections.Immutable"/>
<Using Include="System.Reflection"/>
<Using Include="System.Text"/>
<Using Include="System.Text.RegularExpressions"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj" />
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj"/>
</ItemGroup>
</Project>

View File

@ -14,16 +14,15 @@
</ItemGroup>
<ItemGroup>
<Using Include="AOC.Common" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Reflection" />
<Using Include="System.Text" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="AOC.Common"/>
<Using Include="System.Collections.Generic"/>
<Using Include="System.Collections.Immutable"/>
<Using Include="System.Reflection"/>
<Using Include="System.Text"/>
<Using Include="System.Text.RegularExpressions"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj" />
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj"/>
</ItemGroup>
</Project>

View File

@ -14,16 +14,15 @@
</ItemGroup>
<ItemGroup>
<Using Include="AOC.Common" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Reflection" />
<Using Include="System.Text" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="AOC.Common"/>
<Using Include="System.Collections.Generic"/>
<Using Include="System.Collections.Immutable"/>
<Using Include="System.Reflection"/>
<Using Include="System.Text"/>
<Using Include="System.Text.RegularExpressions"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj" />
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj"/>
</ItemGroup>
</Project>

View File

@ -14,20 +14,18 @@
</ItemGroup>
<ItemGroup>
<Using Include="AOC.Common" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Reflection" />
<Using Include="System.Text" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="AOC.Common"/>
<Using Include="System.Collections.Generic"/>
<Using Include="System.Collections.Immutable"/>
<Using Include="System.Reflection"/>
<Using Include="System.Text"/>
<Using Include="System.Text.RegularExpressions"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj" />
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="morelinq" Version="4.2.0" />
<PackageReference Include="morelinq" Version="4.2.0"/>
</ItemGroup>
</Project>

View File

@ -14,21 +14,19 @@
</ItemGroup>
<ItemGroup>
<Using Include="AOC.Common" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Diagnostics" />
<Using Include="System.Reflection" />
<Using Include="System.Text" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="AOC.Common"/>
<Using Include="System.Collections.Generic"/>
<Using Include="System.Collections.Immutable"/>
<Using Include="System.Diagnostics"/>
<Using Include="System.Reflection"/>
<Using Include="System.Text"/>
<Using Include="System.Text.RegularExpressions"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="morelinq" Version="4.2.0" />
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj" />
<PackageReference Include="morelinq" Version="4.2.0"/>
</ItemGroup>
</Project>

View File

@ -14,19 +14,19 @@
</ItemGroup>
<ItemGroup>
<Using Include="AOC.Common" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Diagnostics" />
<Using Include="System.Reflection" />
<Using Include="System.Text" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="AOC.Common"/>
<Using Include="System.Collections.Generic"/>
<Using Include="System.Collections.Immutable"/>
<Using Include="System.Diagnostics"/>
<Using Include="System.Reflection"/>
<Using Include="System.Text"/>
<Using Include="System.Text.RegularExpressions"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj" />
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="morelinq" Version="4.2.0" />
<PackageReference Include="morelinq" Version="4.2.0"/>
</ItemGroup>
</Project>

View File

@ -14,19 +14,19 @@
</ItemGroup>
<ItemGroup>
<Using Include="AOC.Common" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Diagnostics" />
<Using Include="System.Reflection" />
<Using Include="System.Text" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="AOC.Common"/>
<Using Include="System.Collections.Generic"/>
<Using Include="System.Collections.Immutable"/>
<Using Include="System.Diagnostics"/>
<Using Include="System.Reflection"/>
<Using Include="System.Text"/>
<Using Include="System.Text.RegularExpressions"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj" />
<ProjectReference Include="..\AOC.Common\AOC.Common.csproj"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="morelinq" Version="4.2.0" />
<PackageReference Include="morelinq" Version="4.2.0"/>
</ItemGroup>
</Project>

View File

@ -1,5 +1,8 @@
namespace AOC2023;
/// <summary>
/// <a href="https://adventofcode.com/2023/day/6">Day 6</a>
/// </summary>
public class Day06() : Day(2023, 6, "Wait For It")
{
private readonly List<(int time, int distance)> _races = [];