Skip to content

Commit

Permalink
test logs and gitignore update
Browse files Browse the repository at this point in the history
  • Loading branch information
NakataRin committed Aug 20, 2024
1 parent df39e9f commit e2ea888
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
bin/
obj/

# Ignore test result directories
TestResults/

# NuGet packages
*.nupkg
# Packages folder
Expand Down
4 changes: 4 additions & 0 deletions UwUSnakeTests/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ public void Logic_ShouldIncreaseScoreAndGrowSnake_OnEatingFood()
UwU.foodX = 6;
UwU.foodY = 5;

//Console.WriteLine($"Before Logic - Snake(x,y): ({UwU.snakeX},{UwU.snakeY}), Food(x,y): ({UwU.foodX}, {UwU.foodY}), Score - {UwU.score}");

UwU.Logic();

//Console.WriteLine($"After Logic - Snake(x,y): ({UwU.snakeX},{UwU.snakeY}), Food(x,y): ({UwU.foodX}, {UwU.foodY}), Score - {UwU.score}");

Assert.AreEqual(1, UwU.score);
Assert.AreEqual(initialLength + 1, UwU.snakeBody.Count);
}
Expand Down

0 comments on commit e2ea888

Please sign in to comment.