-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Hypothesis tests for TradeCodes (#71)
* Add hypothesis to requirements * Bump ruff requirement * Fix ruff complaints in Calculation folder * Empty-guard allegiance reduction * Fix ruff complaints in root folder * Add initial hypothesis test for TradeCodes * Extend tradeCodes hypothesis check to round-trips * Add common-use allowed trade pairs * Stich together split homeworld codes when creating TradeCode object * Add remaining common-use trade code pair * Handle homeworlds with unknown populations * Assorted trade-code fixes and blast damage fixen * Enforce no trade-code duplication * Add accumulated bunch of previously-problematic trade codes * Unpack compact Chirper/Droyne trade codes * Explain ok_pairs rationale * Update allowed residuals * Fix more test blowups * Trim malformed trade codes when parsing starlines * Move malformed code trimming inside TradeCode ctor * Add unicode char for RS Omega * Sort codes before rebuilding initial_codes string * Unpack homeworlds in stat calculation * Compile homeworld-match regex * Compile sophont-list and dieback-world regexen * Start enforcing strict Trav5 sophont codes * Wring out sophont and homeworld list generation * Exclude new-type sophont codes from invalid-pair checks * Start verifying major-race homeworlds * Handle explicit populations for major race homeworlds * Verify major races can share homeworlds * Explicitly reject multiple W-pop sophont codes * Fix test blast damage * Drop dead code * Handle <4-char codes in StatCalculation * Add stub total-checks * Dodge homeworld-importance jam-ups in star lines
- Loading branch information
1 parent
5fcdd27
commit 8a672f9
Showing
14 changed files
with
656 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.