Esempio n. 1
0
 def test_roundrobin_with_only_one_iterable(self):
     generator = roundrobin('ABC')
     output = ''.join(generator)
     self.assertEqual(output, 'ABC')
Esempio n. 2
0
 def test_roundrobin_against_unequal_iterables(self):
     generator = roundrobin('AB', 'CDEFGHI')
     output = ''.join(generator)
     self.assertEqual(output, 'ACBDEFGHI')
Esempio n. 3
0
 def test_roundrobin_with_letters(self):
     generator = roundrobin('ABC', 'D', 'EF')
     output = ''.join(generator)
     self.assertEqual(output, 'ADEBFC')
Esempio n. 4
0
 def test_roundrobin_with_letters(self):
     generator = roundrobin("ABC", "D", "EF")
     output = "".join(generator)
     self.assertEqual(output, "ADEBFC")
Esempio n. 5
0
 def test_roundrobin_with_only_one_iterable(self):
     generator = roundrobin("ABC")
     output = "".join(generator)
     self.assertEqual(output, "ABC")
Esempio n. 6
0
 def test_roundrobin_against_unequal_iterables(self):
     generator = roundrobin("AB", "CDEFGHI")
     output = "".join(generator)
     self.assertEqual(output, "ACBDEFGHI")