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 26, 2024
1 parent ccbed25 commit 406e0fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/Hypothesis/Inputs/testHypothesisStarlineParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def comparison_line(draw):
'0000 000000000000000 ???????-? 000000000000000 - - A 000 --0',
'0000 000000000000000 ???????-? 000000000000000 - - A 000 --0',
'0000 000000000000000 ???????-? 000000000000000 {0} - [0000] - A 000 ?0'
'0000 000000000000000 ???????-? 000000000000 (0 - (000-0) [0000] B - A 000 00?'
]

candidate = draw(from_regex(regex=ParseStarInput.starline, alphabet='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYXZ -{}()[]?\'+*'))
Expand Down Expand Up @@ -317,6 +318,7 @@ class testHypothesisStarlineParser(unittest.TestCase):
@example('0000 000000000000000 0000000-0 000000000000000 - - A 000 00?0000-0 ', 'weird')
@example('2234 00001111111111[ 1234446-N (111114GK\'ehilp - (005-1) - B - U 112 WW', 'weird')
@example('0000 000000000000000 ???????-? (0 000000000)0? - - A 000 00?', 'weird')
@example('0000 000000000000000 ???????-? 000000000000 (0 - (000-0) [0000] B - A 000 00?', 'weird')
def test_starline_parser_against_regex(self, s, match):
# if it's a known weird-parse case, assume it out now
assume(match != 'weird')
Expand Down

0 comments on commit 406e0fd

Please sign in to comment.