Commit 0bd3f329 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/base/ Add test for repetition counters.

parent 2b080cf5
......@@ -61,3 +61,8 @@ try:
struct.pack(1, 2)
except TypeError:
# Initially repitition counters were supported only for strings,
# but later were implemented for all.
print(struct.unpack("<3B2h", b"foo\x12\x34\xff\xff"))
print(struct.pack("<3B", 1, 2, 3))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment