Skip to content

Commit

Permalink
Fix test blast damage
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberiaResurrection committed Jun 25, 2024
1 parent 87d9cfe commit 4912d20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions PyRoute/SystemData/UWP.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ def _canonicalise_socials(self):
if 'X' == self.gov:
if 0 < self.pop_code:
self.gov_code = 0
max_gov, min_gov = self._get_gov_bounds()
self.gov_code = max(min_gov, min(max_gov, self.gov_code))
elif '?' != self.gov:
max_gov, min_gov = self._get_gov_bounds()
self.gov_code = max(min_gov, min(max_gov, self.gov_code))
Expand Down
4 changes: 2 additions & 2 deletions Tests/Hypothesis/testUWP.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ def test_initial_parsing(self, uwp_line, expected_oldskool):
@example('?B00000-0', '?B61000-2')
@example('?170000-0', '?160000-4')
@example('?000060-0', '?000050-4')
@example('?0005X0-0', '?0005X0-6')
@example('?0005X0-0', '?000500-6')
@example('?000F00-0', '?000FA5-8')
@example('?000?x0-0', '?000?X0-5')
@example('?0006X0-0', '?0006X0-5') # Not sure exactly what to do with this one - Lintsec likes treating gov X as gov 0
@example('?0006X0-0', '?000610-5') # Not sure exactly what to do with this one - Lintsec likes treating gov X as gov 0
@example('?000F00-0', '?000FA5-8')
@example('?0000G0-0', '?000050-4')
@example('?000?F0-0', '?000?FA-4')
Expand Down

0 comments on commit 4912d20

Please sign in to comment.