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

Method test_add

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

Source from the content-addressed store, hash-verified

119 self.assertTrue("c" in s)
120
121 def test_add(self):
122 l0 = self.seq([1, 2, 3]).map(lambda x: x)
123 l1 = self.seq([4, 5, 6])
124 l2 = [4, 5, 6]
125 expect = [1, 2, 3, 4, 5, 6]
126 self.assertEqual(l0 + l1, expect)
127 self.assertEqual(l0 + l2, expect)
128
129 def test_head(self):
130 l = self.seq([1, 2, 3]).map(lambda x: x)

Callers

nothing calls this directly

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected