Skip to content

Commit

Permalink
solve first puzzle correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rpgrca committed Dec 23, 2024
1 parent 7486df9 commit 6c3f6b0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 2024/Day23/Day23.UnitTests/LanPartyMust.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,18 @@ public void FindThreeComputerPartiesCorrectly()
}

[Fact]
public void FindNetworksOfThreeComputers_WhenOneStartsWithT()
public void SolveFirstSampleCorrectly()
{
var sut = new LanParty(SAMPLE_INPUT);
var result = sut.FindNetworksWithComputerStartingWith(3, 't');
Assert.Equal(7, result);
}

[Fact]
public void SolveFirstPuzzleCorrectly()
{
var sut = new LanParty(PUZZLE_INPUT);
var result = sut.FindNetworksWithComputerStartingWith(3, 't');
Assert.Equal(1175, result);
}
}

0 comments on commit 6c3f6b0

Please sign in to comment.