def test_continious_bools_can_be_packed_unpacked(data):
bools = data.draw(hs.lists(strategies.bools))
stream = io.BytesIO()
at.Bool.many_to_bytestream(bools, stream)
stream.seek(0)
new = at.Bool.many_from_bytestream(stream, len(bools))
assert bools == new
评论列表
文章目录