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

Method test_sum

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

Source from the content-addressed store, hash-verified

679 self.assertEqual(10, s.product(lambda x: x * 2))
680
681 def test_sum(self):
682 l = [1, 2, 3]
683 self.assertEqual(6, self.seq(l).sum())
684 self.assertEqual(12, self.seq(l).sum(lambda x: x * 2))
685
686 def test_average(self):
687 l = [1, 2]

Callers

nothing calls this directly

Calls 1

sumMethod · 0.80

Tested by

no test coverage detected