def test_beam_right(self): self.assertEqual(rechercher.beam_search(rechercher.domains.PolynomialDescent(10)).state.x, 3)
def test_beam_middle(self): self.assertEqual(rechercher.beam_search(rechercher.domains.PolynomialDescent(0)).state.x, -1)