Code formatting and warning fixing.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user