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

Method test_len

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

Source from the content-addressed store, hash-verified

78 self.assertRaises(TypeError, lambda: hash(self.seq([1])))
79
80 def test_len(self):
81 l = [1, 2, 3]
82 s = self.seq(l)
83 self.assertEqual(len(l), s.size())
84 self.assertEqual(len(l), s.len())
85
86 def test_count(self):
87 l = self.seq([-1, -1, 1, 1, 1])

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
lenMethod · 0.80

Tested by

no test coverage detected