MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / test_init

Method test_init

functional/test/test_functional.py:174–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

172 self.assertIsNone(l.last_option())
173
174 def test_init(self):
175 result = self.seq([1, 2, 3, 4]).map(lambda x: x).init()
176 expect = [1, 2, 3]
177 self.assertIteratorEqual(result, expect)
178
179 def test_tail(self):
180 l = self.seq([1, 2, 3, 4]).map(lambda x: x)

Callers

nothing calls this directly

Calls 3

assertIteratorEqualMethod · 0.95
initMethod · 0.80
mapMethod · 0.80

Tested by

no test coverage detected