Skip to content

Commit

Permalink
added edge cases to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterOu8 committed Oct 18, 2022
1 parent c8c54a5 commit 58b9abc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,9 @@ void setPotionQuantity() {
expectedList[0] = expectedQuantity;
InventoryComponent inventory = player.getComponent(InventoryComponent.class);
inventory.setPotionQuantity(0, expectedQuantity);
//Edge cases input > threshold
inventory.setPotionQuantity(0, 10);
inventory.setPotionQuantity(3, expectedQuantity);
assertArrayEquals(expectedList, inventory.getQuickBarQuantity());
}

Expand Down

0 comments on commit 58b9abc

Please sign in to comment.