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 3def9e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tests/Hypothesis/Inputs/testHypothesisStarlineParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def comparison_line(draw):
'0000 000000000000000 0000000-0 000000000000 (0 - - 0 000 ?0)',
'0000 000000000000000 ???????-? 000000000000000 - - A 000 --0',
'0000 000000000000000 ???????-? 000000000000000 - - A 000 --0',
'0000 000000000000000 ???????-? 000000000000000 {0} - [0000] - A 000 ?0'
'0000 000000000000000 ???????-? 000000000000000 {0} - [0000] - A 000 ?0',
'0000 000000000000000 ???????-? 000000000000 (0 - (000-0) [0000] B - A 000 00?',
'0000 000000000000000 0000000-0 (00000000000000 B - A 000 ?0)0000000000',
'0000 000000000000000 0000000-0 (00000000000000 - (000-0) - B - A 000 0?'
]

candidate = draw(from_regex(regex=ParseStarInput.starline, alphabet='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYXZ -{}()[]?\'+*'))
Expand Down Expand Up @@ -317,6 +320,9 @@ 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')
@example('0000 000000000000000 0000000-0 (00000000000000 B - A 000 ?0)0000000000', 'weird')
@example('0000 000000000000000 0000000-0 (00000000000000 - (000-0) - B - A 000 0?', '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 3def9e9

Please sign in to comment.