Opened 9 years ago

Last modified 8 years ago

#140 confirmed task

Add equality methods to WarFoundry objects

Reported by: ibboard Owned by:
Priority: major Milestone:
Component: WarFoundry-API Version: Unknown or N/A
Keywords: army race gamesystem equality Cc:
Blocked By: Blocking:

Description

Most of the WarFoundry objects don't currently have equality methods, which means that two objects with identical values aren't "equal". This should be resolved by adding appropriate equality checks for objects.

Change History (7)

comment:1 Changed 9 years ago by ibboard

Status: newconfirmed

Move tickets to new "confirmed" status to show that they've been checked

comment:2 Changed 8 years ago by ibboard

Milestone: WarFoundry 0.1WarFoundry 1.0
Version: Unknown or N/A

Not vital for v0.1, since everything is (luckily) working without it so far. Needs doing by v1.0, though.

comment:3 Changed 8 years ago by ibboard

Milestone: WarFoundry 1.0

Milestone WarFoundry 1.0 deleted

comment:11 Changed 8 years ago by ibboard

In [901]:

Re #140: Add equality methods to WarFoundry objects

  • Add equality to Race, GameSystem and UnitType tests
  • Create equality test for UnitCountRequirementData

Not all tests pass yet

comment:12 Changed 8 years ago by ibboard

In [902]:

Re #140: Add equality methods

  • Add equality method tests for RequiresAtLeastNUnitsRequirement

comment:13 Changed 8 years ago by ibboard

In [903]:

Re #140: Add equality methods

  • Add equality method for RequiresAtLeastNUnitsRequirement
  • Update equality method on GameSystem and No More Than limit to use new helper class
  • Add equality methods on Race and UnitType as a dependent of equality of requirements

comment:14 Changed 8 years ago by ibboard

In [904]:

Re #140: Equality methods

  • Add equality testing to RequiresNoMoreThanN requirement
  • Add extra different races for testing more of equality method
Note: See TracTickets for help on using tickets.