Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: dotnet build --no-restore --configuration Release

- name: Run tests
run: dotnet test --no-build --configuration Release --verbosity normal --logger trx --results-directory "TestResults"
run: dotnet test --no-restore --configuration Release --verbosity normal --logger trx --results-directory "TestResults"

- name: Test Report
uses: dorny/test-reporter@v1
Expand Down
3 changes: 1 addition & 2 deletions test/AdventOfCode.2015/Day03.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public Day03()
public void Part1()
{
IntVec2 current = default;
HashSet<IntVec2> positions = new HashSet<IntVec2>();
positions.Add(current);
HashSet<IntVec2> positions = [current];

for (int i = 0; i < _input.Length; i++)
{
Expand Down
7 changes: 0 additions & 7 deletions test/AdventOfCode.2021/GlobalUsings.cs

This file was deleted.

2 changes: 1 addition & 1 deletion test/AdventOfCode.2022/Day01.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public Day01()
{
this.input = new();
List<int> current = new();
foreach (string line in File.ReadAllLines("Inputs/day01.txt"))
foreach (string line in File.ReadAllLines("Inputs/Day01.txt"))
{
if (line == string.Empty)
{
Expand Down
2 changes: 1 addition & 1 deletion test/AdventOfCode.2022/Day20.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Day20
{
(LinkedList<long> list, LinkedListNode<long>[] order) Input(long multiplier)
{
long[] ints = File.ReadAllLines("Inputs/day20.txt").Select(long.Parse).Select(i => i * multiplier).ToArray();
long[] ints = File.ReadAllLines("Inputs/Day20.txt").Select(long.Parse).Select(i => i * multiplier).ToArray();
LinkedListNode<long>[] nodes = ints.Select(n => new LinkedListNode<long>(n)).ToArray();

LinkedList<long> list = new();
Expand Down
1 change: 0 additions & 1 deletion test/AdventOfCode.2022/Usings.cs

This file was deleted.

1 change: 1 addition & 0 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</ItemGroup>

<ItemGroup>
<Using Include="System.Math" Static="true" />
<Using Include="Xunit" />
<Using Include="AdventOfCode.Common" />
</ItemGroup>
Expand Down