Skip to content

Commit

Permalink
Update the fuzzer test
Browse files Browse the repository at this point in the history
  • Loading branch information
sydseter committed Apr 29, 2024
1 parent 1b3dbc6 commit 7dd6cd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/scripts/get_suit_tags_and_key_fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ def TestOneInput(data):
test = unittest.TestCase()
fdp = atheris.FuzzedDataProvider(data)
input_key = fdp.ConsumeUnicodeNoSurrogates(1024)
edition = fdp.ConsumeUnicodeNoSurrogates(1024)
want_tags: List[str] = []
want_key: str = ""
got_tags, got_key = c.get_suit_tags_and_key(input_key)
got_tags, got_key = c.get_suit_tags_and_key(input_key, edition)
assert got_key == want_key
test.assertEqual(want_tags, got_tags)

Expand Down

0 comments on commit 7dd6cd3

Please sign in to comment.