def test_roundrobin_with_only_one_iterable(self): generator = roundrobin('ABC') output = ''.join(generator) self.assertEqual(output, 'ABC')
def test_roundrobin_against_unequal_iterables(self): generator = roundrobin('AB', 'CDEFGHI') output = ''.join(generator) self.assertEqual(output, 'ACBDEFGHI')
def test_roundrobin_with_letters(self): generator = roundrobin('ABC', 'D', 'EF') output = ''.join(generator) self.assertEqual(output, 'ADEBFC')
def test_roundrobin_with_letters(self): generator = roundrobin("ABC", "D", "EF") output = "".join(generator) self.assertEqual(output, "ADEBFC")
def test_roundrobin_with_only_one_iterable(self): generator = roundrobin("ABC") output = "".join(generator) self.assertEqual(output, "ABC")
def test_roundrobin_against_unequal_iterables(self): generator = roundrobin("AB", "CDEFGHI") output = "".join(generator) self.assertEqual(output, "ACBDEFGHI")