Skip to content

Commit 4f1f647

Browse files
committed
Include raw_bits in test_parsing
1 parent f9fdfda commit 4f1f647

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_all.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def test_parsing():
9999
Parsed result:
100100
Élan
101101
\tthe barcode is taking off
102+
Raw bits:
103+
f00f00cafe
102104
Found 4 result points:
103105
Point 0: (24.0,18.0)
104106
Point 1: (21.0,196.0)
@@ -110,6 +112,7 @@ def test_parsing():
110112
assert dec.format == 'FAKE_DATA'
111113
assert dec.type == 'TEXT'
112114
assert dec.raw == 'Élan|\tthe barcode is taking off'
115+
assert dec.raw_bits == bytes.fromhex('f00f00cafe')
113116
assert dec.parsed == 'Élan\n\tthe barcode is taking off'
114117
assert dec.points == [(24.0, 18.0), (21.0, 196.0), (201.0, 198.0), (205.23952, 21.0)]
115118

0 commit comments

Comments
 (0)