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