HomeSort by relevance Sort by last modified time
    Searched refs:SequenceClass (Results 1 - 2 of 2) sorted by null

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_iter.py 39 class SequenceClass:
118 self.check_for_loop(SequenceClass(10), range(10))
122 self.check_iterator(iter(SequenceClass(10)), range(10))
181 class MySequenceClass(SequenceClass):
185 return SequenceClass.__getitem__(self, i)
197 class MySequenceClass(SequenceClass):
201 return SequenceClass.__getitem__(self, i)
259 self.assertEqual(list(SequenceClass(5)), range(5))
260 self.assertEqual(list(SequenceClass(0)), [])
291 self.assertEqual(tuple(SequenceClass(5)), (0, 1, 2, 3, 4)
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_iter.py 39 class SequenceClass:
118 self.check_for_loop(SequenceClass(10), range(10))
122 self.check_iterator(iter(SequenceClass(10)), range(10))
181 class MySequenceClass(SequenceClass):
185 return SequenceClass.__getitem__(self, i)
197 class MySequenceClass(SequenceClass):
201 return SequenceClass.__getitem__(self, i)
259 self.assertEqual(list(SequenceClass(5)), range(5))
260 self.assertEqual(list(SequenceClass(0)), [])
291 self.assertEqual(tuple(SequenceClass(5)), (0, 1, 2, 3, 4)
    [all...]

Completed in 1684 milliseconds