Skip to content

Commit

Permalink
Update GameOfLifeTests.cs
Browse files Browse the repository at this point in the history
Adds specificity for requiring exactly 3 live neighbors for condition of dead cells coming back to life
  • Loading branch information
errolpais authored Jul 12, 2024
1 parent c8bd595 commit 66a70cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/practice/game-of-life/GameOfLifeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ public void Live_cells_with_three_live_neighbors_stay_alive()
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Dead_cells_with_three_live_neighbors_become_alive()
public void Dead_cells_with_exactly_three_live_neighbors_become_alive()
{
var matrix = new[,]
{
{ 1, 1, 0 },
{ 1, 1, 1 },
{ 0, 0, 0 },
{ 1, 0, 0 }
};
var expected = new[,]
{
{ 0, 0, 0 },
{ 1, 1, 0 },
{ 0, 1, 0 },
{ 1, 0, 0 },
{ 0, 0, 0 }
};
Assert.Equal(expected, GameOfLife.Tick(matrix));
Expand Down

0 comments on commit 66a70cb

Please sign in to comment.