def points_to_text(points): """ convert plain-points to text """ nums = [point_to_num(p) for p in points] text_array = [num_to_chars(num) for num in nums] return ''.join(text_array)
def test_num_to_point_to_num(self): for num in range(15*8)[::4]: p = pub.num_to_point(2**num) self.assertEqual(pub.point_to_num(p), 2**num)