Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Add quick unit tests for Commander struct #4

Merged
merged 9 commits into from
Apr 17, 2024
Merged

Add quick unit tests for Commander struct #4

merged 9 commits into from
Apr 17, 2024

Conversation

ggmolly
Copy link
Owner

@ggmolly ggmolly commented Apr 17, 2024

Add these tests function :

  • TestEnoughGold
  • TestEnoughCube
  • TestEnoughResource
  • TestEnoughItem
  • TestConsumeItem
  • TestConsumeResource
  • TestAddItem
  • TestAddResource
  • TestSetResource
  • TestSetItem
  • TestGetItemCount

For these methods :

  • commander.HasEnoughGold
  • commander.HasEnoughCube
  • commander.HasEnoughResource
  • commander.HasEnoughItem
  • commander.ConsumeItem
  • commander.ConsumeResource
  • commander.AddItem
  • commander.AddResource
  • commander.SetResource
  • commander.SetItem
  • commander.GetItemCount

@ggmolly ggmolly self-assigned this Apr 17, 2024
@ggmolly ggmolly merged commit c57e6f2 into main Apr 17, 2024
1 of 2 checks passed
@ggmolly ggmolly deleted the feat/tests branch April 20, 2024 17:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant