Rise
The Vieneo Province
Loading...
Searching...
No Matches
Immigration Rules tests

Checks permitted immigration changes and validation boundaries.

Subsystem: GUI, controls, inventory and player interaction
Fixture/harness: immigrationrulestests
Setup: The standalone ImmigrationRulesTests harness owns the inputs, local helpers and assertion sink used by the case files below.

Build/entry point: Tests/ImmigrationRulesTests.vcxproj; declared configurations: Debug|Win32.

ImmigrationRulesTests.cpp

Source: Tests/ImmigrationRulesTests.cpp

Entry-point checks

Fixture: Immigration Rules tests
Case symbol: main
Source: Tests/ImmigrationRulesTests.cpp:12

Test
Entry-point checks: annual +/-47 kg endpoints accepted; annual changes over 47 kg rejected; typed extremes clamped at annual limits.
Source check messages (including original failure wording)

  • annual +/-47 kg endpoints accepted
  • annual changes over 47 kg rejected
  • typed extremes clamped at annual limits
  • unchanged weight preserved
  • female limits intersect annual allowance
  • upper body range preserved
  • lower body range preserved
  • missing weight can be completed
  • new character keeps full range
  • ordinary form validation unchanged
  • multiple edits cannot compound the visit allowance