Learner1D's bound check algo in self.ask doesn't take self.data or self.pending_points
This code should not raise an AssertionError
.
We can add it to the tests.
learner = Learner1D(lambda x: None, (-1, 1))
learner.tell(0, 0)
points, _ = learner.ask(3)
assert 0 not in points
Edited by Bas Nijholt