MCPcopy Index your code
hub / github.com/python/cpython / test_chain

Method test_chain

Lib/test/test_itertools.py:1553–1554  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1551 self.assertEqual(list(accumulate([1,2,3,4,5])), [1, 3, 6, 10, 15])
1552
1553 def test_chain(self):
1554 self.assertEqual(''.join(chain('ABC', 'DEF')), 'ABCDEF')
1555
1556 def test_chain_from_iterable(self):
1557 self.assertEqual(''.join(chain.from_iterable(['ABC', 'DEF'])), 'ABCDEF')

Callers

nothing calls this directly

Calls 3

chainFunction · 0.85
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected