Skip to content

Commit

Permalink
Fix test_fuzz_fromStr for floats
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Sep 18, 2024
1 parent 5d6dfb8 commit 4fdbcb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meshtastic/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,11 @@ def test_fuzz_fromStr(valstr):
int(valstr)
assert isinstance(result, int)
except ValueError:
assert isinstance(result, str)
try:
float(valstr)
assert isinstance(result, float)
except ValueError:
assert isinstance(result, str)

def test_shorthex():
"""Test the shortest hex string representations"""
Expand Down

0 comments on commit 4fdbcb9

Please sign in to comment.