Ejemplo n.º 1
0
 def test_find_sets3(self):
     for i in range(100):
         cards = sets_solver.random_cards()
         sets = sets_solver.find_sets(cards)
         sets3 = sets_solver.find_sets3(cards)
         for s in sets3:
             s = list(s)
             s.sort()
             self.assertTrue(tuple(s) in sets)
Ejemplo n.º 2
0
 def test_find_sets3(self):
     for i in range(100):
         cards = sets_solver.random_cards()
         sets = sets_solver.find_sets(cards)
         sets3 = sets_solver.find_sets3(cards)
         for s in sets3:
             s = list(s)
             s.sort()
             self.assertTrue(tuple(s) in sets)
Ejemplo n.º 3
0
 def test_find_sets2(self):
     for i in range(100):
         cards = sets_solver.random_cards()
         sets = sets_solver.find_sets(cards)
         sets2 = sets_solver.find_sets2(cards)
         self.assertEqual(sets, sets2)
Ejemplo n.º 4
0
 def test_find_sets2(self):
     for i in range(100):
         cards = sets_solver.random_cards()
         sets = sets_solver.find_sets(cards)
         sets2 = sets_solver.find_sets2(cards)
         self.assertEqual(sets, sets2)