Home | History | Annotate | Download | only in test

Lines Matching refs:length_hint

47 from operator import length_hint
57 self.assertEqual(length_hint(it), i)
59 self.assertEqual(length_hint(it), 0)
61 self.assertEqual(length_hint(it), 0)
70 self.assertEqual(length_hint(it), n)
72 self.assertEqual(length_hint(it), n-1)
75 self.assertEqual(length_hint(it), 0)
155 self.assertEqual(length_hint(it), n - 2)
157 self.assertEqual(length_hint(it), n - 1) # grow with append
159 self.assertEqual(length_hint(it), 0)
162 self.assertEqual(length_hint(it), 0)
175 self.assertEqual(length_hint(it), n - 2)
177 self.assertEqual(length_hint(it), n - 2) # ignore append
179 self.assertEqual(length_hint(it), 0)
182 self.assertEqual(length_hint(it), 0)