Esempio n. 1
0
 def test_all_variants7(self):
     listed = [[1, 2], [3], [4]]
     expected = [[1, 3, 4], [2, 3, 4]]
     self.assertEqual(expected, all_variants(listed))
Esempio n. 2
0
 def test_all_variants8(self):
     listed = [[1, 2], [3, 4], [5]]
     expected = [[1, 3, 5], [1, 4, 5], [2, 3, 5], [2, 4, 5]]
     self.assertEqual(expected, all_variants(listed))
Esempio n. 3
0
 def test_all_variants4(self):
     listed = [[1, 2]]
     expected = [[1], [2]]
     self.assertEqual(expected, all_variants(listed))