Code formatting and warning fixing.

This commit is contained in:
2024-12-01 17:36:23 +01:00
parent 9f8d966b7a
commit dafd2526d1
93 changed files with 739 additions and 823 deletions

View File

@@ -2,17 +2,17 @@ namespace AdventOfCode2023.Tests;
public class Day09_Tests
{
private readonly string[] _example = {
private readonly string[] _example = [
"0 3 6 9 12 15",
"1 3 6 10 15 21",
"10 13 16 21 30 45",
};
];
[Fact]
public void ResolvePart1__Example()
{
Day09 day = new();
string result = day.ResolvePart1(_example);
Assert.Equal("114", result);
@@ -22,7 +22,7 @@ public class Day09_Tests
public void ResolvePart2__Example()
{
Day09 day = new();
string result = day.ResolvePart2(_example);
Assert.Equal("2", result);
@@ -35,7 +35,7 @@ public class Day09_Tests
long result = extrapolator.Extrapolate();
Assert.Equal(18, result);
}
[Fact]
public void Extrapolator_Extrapolate__Example2()
{
@@ -43,7 +43,7 @@ public class Day09_Tests
long result = extrapolator.Extrapolate();
Assert.Equal(28, result);
}
[Fact]
public void Extrapolator_Extrapolate__Example3()
{
@@ -59,7 +59,7 @@ public class Day09_Tests
long result = extrapolator.ExtrapolatePast();
Assert.Equal(-3, result);
}
[Fact]
public void Extrapolator_ExtrapolatePast__Example2()
{
@@ -67,7 +67,7 @@ public class Day09_Tests
long result = extrapolator.ExtrapolatePast();
Assert.Equal(0, result);
}
[Fact]
public void Extrapolator_ExtrapolatePast__Example3()
{