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

Method test_drop_while

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

Source from the content-addressed store, hash-verified

212 self.assertIteratorEqual(s.drop_right(-1), s)
213
214 def test_drop_while(self):
215 l = [1, 2, 3, 4, 5, 6, 7, 8]
216 f = lambda x: x < 4
217 expect = [4, 5, 6, 7, 8]
218 result = self.seq(l).drop_while(f)
219 self.assertIteratorEqual(expect, result)
220 self.assert_type(result)
221
222 def test_take(self):
223 s = self.seq([1, 2, 3, 4, 5, 6])

Callers

nothing calls this directly

Calls 3

assertIteratorEqualMethod · 0.95
assert_typeMethod · 0.95
drop_whileMethod · 0.80

Tested by

no test coverage detected