Beispiel #1
0
 def test_min_conflicts(self):
     result = min_conflicts(self.problem)
     c = _count_conflicts(self.problem, result)
     self.assertEqual(c, 0)
Beispiel #2
0
 def test_min_conflicts(self):
     result = min_conflicts(self.problem)
     self.assertEqual(result, {'A':2, 'B': 3, 'C': 1})
Beispiel #3
0
 def test_min_conflicts(self):
     result = min_conflicts(self.problem)
     c = _count_conflicts(self.problem, result)
     self.assertEqual(c, 0)
Beispiel #4
0
 def test_min_conflicts(self):
     result = min_conflicts(self.problem)
     self.assertEqual(result, {'A': 2, 'B': 3, 'C': 1})