mirror of
https://github.com/wassname/segpy.git
synced 2026-10-04 13:00:36 +08:00
Major work-in-progress on the binary header specification system.
This commit is contained in:
1 parent
25d2387d39
commit
5cfc1805e9
9 files changed
+369
-236
No files matched your search
+1
-1
@@ -16,6 +16,6 @@ def multiline_ascii_encodable_text(min_num_lines, max_num_lines):
|
||||
and characters which are encodable as printable 7-bit ASCII characters.
|
||||
"""
|
||||
|
||||
return strategy(integers_in_range(0, 10)) \
|
||||
return strategy(integers_in_range(min_num_lines, max_num_lines)) \
|
||||
.flatmap(lambda n: ([integers_in_range(*PRINTABLE_ASCII_RANGE)],) * n) \
|
||||
.map(lambda xs: '\n'.join(bytes(x).decode('ascii') for x in xs))
|
||||
Reference in new issue
Block a user