def do_draw(self, data): return int(self.lower_bound + d.geometric(data, 1.0 / self.average_size))
def test_geometric_can_handle_bad_first_draw(): assert cu.geometric(ConjectureData.for_buffer(hbytes([255] * 7 + [0] * 7)), 0.5) == 0
def do_draw(self, data): return int( self.lower_bound + d.geometric(data, 1.0 / self.average_size))
def test_geometric_can_handle_bad_first_draw(): assert cu.geometric(ConjectureData.for_buffer(hbytes( [255] * 7 + [0] * 7)), 0.5) == 0