Skip to content

Commit

Permalink
Simplify tests (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mMosiur authored May 9, 2024
1 parent 79957e0 commit 27e4927
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 40 deletions.
8 changes: 4 additions & 4 deletions Tests/Day01Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public sealed class Day01Tests : BaseDayTests<Day01Solver, Day01SolverOptions>
[Theory]
[InlineData("example-input-1.txt", "142")]
[InlineData("my-input.txt", "54634")]
public void TestPart1(string inputFilename, string expectedResult, Day01SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input-2.txt", "281")]
[InlineData("my-input.txt", "53855")]
public void TestPart2(string inputFilename, string expectedResult, Day01SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}
8 changes: 4 additions & 4 deletions Tests/Day02Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public sealed class Day02Tests : BaseDayTests<Day02Solver, Day02SolverOptions>
[Theory]
[InlineData("example-input.txt", "8")]
[InlineData("my-input.txt", "2164")]
public void TestPart1(string inputFilename, string expectedResult, Day02SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input.txt", "2286")]
[InlineData("my-input.txt", "69929")]
public void TestPart2(string inputFilename, string expectedResult, Day02SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}
8 changes: 4 additions & 4 deletions Tests/Day03Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public sealed class Day03Tests : BaseDayTests<Day03Solver, Day03SolverOptions>
[Theory]
[InlineData("example-input.txt", "4361")]
[InlineData("my-input.txt", "529618")]
public void TestPart1(string inputFilename, string expectedResult, Day03SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input.txt", "467835")]
[InlineData("my-input.txt", "77509019")]
public void TestPart2(string inputFilename, string expectedResult, Day03SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}
8 changes: 4 additions & 4 deletions Tests/Day04Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public sealed class Day04Tests : BaseDayTests<Day04Solver, Day04SolverOptions>
[Theory]
[InlineData("example-input.txt", "13")]
[InlineData("my-input.txt", "25231")]
public void TestPart1(string inputFilename, string expectedResult, Day04SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input.txt", "30")]
[InlineData("my-input.txt", "9721255")]
public void TestPart2(string inputFilename, string expectedResult, Day04SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}
8 changes: 4 additions & 4 deletions Tests/Day05Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public sealed class Day05Tests : BaseDayTests<Day05Solver, Day05SolverOptions>
[Theory]
[InlineData("example-input.txt", "35")]
[InlineData("my-input.txt", "650599855")]
public void TestPart1(string inputFilename, string expectedResult, Day05SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input.txt", "46")]
[InlineData("my-input.txt", "1240035")]
public void TestPart2(string inputFilename, string expectedResult, Day05SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}
8 changes: 4 additions & 4 deletions Tests/Day06Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public sealed class Day06Tests : BaseDayTests<Day06Solver, Day06SolverOptions>
[Theory]
[InlineData("example-input.txt", "288")]
[InlineData("my-input.txt", "220320")]
public void TestPart1(string inputFilename, string expectedResult, Day06SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input.txt", "71503")]
[InlineData("my-input.txt", "34454850")]
public void TestPart2(string inputFilename, string expectedResult, Day06SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}
8 changes: 4 additions & 4 deletions Tests/Day07Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public sealed class Day07Tests : BaseDayTests<Day07Solver, Day07SolverOptions>
[Theory]
[InlineData("example-input.txt", "6440")]
[InlineData("my-input.txt", "252052080")]
public void TestPart1(string inputFilename, string expectedResult, Day07SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input.txt", "5905")]
[InlineData("my-input.txt", "252898370")]
public void TestPart2(string inputFilename, string expectedResult, Day07SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}
8 changes: 4 additions & 4 deletions Tests/Day08Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public sealed class Day08Tests : BaseDayTests<Day08Solver, Day08SolverOptions>
[InlineData("example-input-1.txt", "2")]
[InlineData("example-input-2.txt", "6")]
[InlineData("my-input.txt", "19099")]
public void TestPart1(string inputFilename, string expectedResult, Day08SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input-3.txt", "6")]
[InlineData("my-input.txt", "17099847107071")]
public void TestPart2(string inputFilename, string expectedResult, Day08SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}
8 changes: 4 additions & 4 deletions Tests/Day09Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public sealed class Day09Tests : BaseDayTests<Day09Solver, Day09SolverOptions>
[Theory]
[InlineData("example-input.txt", "114")]
[InlineData("my-input.txt", "1969958987")]
public void TestPart1(string inputFilename, string expectedResult, Day09SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input.txt", "2")]
[InlineData("my-input.txt", "1068")]
public void TestPart2(string inputFilename, string expectedResult, Day09SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}
8 changes: 4 additions & 4 deletions Tests/Day10Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ public sealed class Day10Tests : BaseDayTests<Day10Solver, Day10SolverOptions>
[InlineData("example-input-3.txt", "8")]
[InlineData("example-input-4.txt", "8")]
[InlineData("my-input.txt", "6613")]
public void TestPart1(string inputFilename, string expectedResult, Day10SolverOptions? options = null)
=> BaseTestPart1(inputFilename, expectedResult, options);
public void TestPart1(string inputFilename, string expectedResult)
=> BaseTestPart1(inputFilename, expectedResult);

[Theory]
[InlineData("example-input-5.txt", "4")]
[InlineData("example-input-6.txt", "4")]
[InlineData("example-input-7.txt", "8")]
[InlineData("example-input-8.txt", "10")]
[InlineData("my-input.txt", "511")]
public void TestPart2(string inputFilename, string expectedResult, Day10SolverOptions? options = null)
=> BaseTestPart2(inputFilename, expectedResult, options);
public void TestPart2(string inputFilename, string expectedResult)
=> BaseTestPart2(inputFilename, expectedResult);
}

0 comments on commit 27e4927

Please sign in to comment.