Skip to content

Commit

Permalink
Include raw_bits in test_parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dlenski committed Sep 21, 2023
1 parent f9fdfda commit 847e180
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def test_parsing():
Parsed result:
Élan
\tthe barcode is taking off
Raw bits:
f00f00cafe
Found 4 result points:
Point 0: (24.0,18.0)
Point 1: (21.0,196.0)
Expand All @@ -110,6 +112,7 @@ def test_parsing():
assert dec.format == 'FAKE_DATA'
assert dec.type == 'TEXT'
assert dec.raw == 'Élan|\tthe barcode is taking off'
assert dec.raw_bits == bytes.fromhex('f00f00cafe')
assert dec.parsed == 'Élan\n\tthe barcode is taking off'
assert dec.points == [(24.0, 18.0), (21.0, 196.0), (201.0, 198.0), (205.23952, 21.0)]

Expand Down

0 comments on commit 847e180

Please sign in to comment.