• Home
  • Raw
  • Download

Lines Matching refs:example

79         a.append(self.example[0])
82 a = array.array(self.typecode, self.example)
83 self.assertEqual(len(a), len(self.example))
86 a = array.array(self.typecode, self.example)
96 a = array.array(self.typecode, self.example)
99 b = array.array(self.typecode, self.example)
110 a = array.array(self.typecode, self.example)
117 a = array.array(self.typecode, self.example)
124 a = array.array(self.typecode, self.example)
129 a = ArraySubclass(self.typecode, self.example)
153 a = array.array(self.typecode, self.example)
154 a.insert(0, self.example[0])
155 self.assertEqual(len(a), 1+len(self.example))
161 a = array.array(self.typecode, self.example)
162 a.insert(-1, self.example[0])
167 self.example[:-1] + self.example[:1] + self.example[-1:]
171 a = array.array(self.typecode, self.example)
172 a.insert(-1000, self.example[0])
175 array.array(self.typecode, self.example[:1] + self.example)
178 a = array.array(self.typecode, self.example)
179 a.insert(1000, self.example[0])
182 array.array(self.typecode, self.example + self.example[:1])
186 a = array.array(self.typecode, 2*self.example)
200 cStringIO.StringIO(), len(self.example)
202 b.fromfile(f, len(self.example))
203 self.assertEqual(b, array.array(self.typecode, self.example))
205 b.fromfile(f, len(self.example))
220 self.assertRaises(IOError, a.fromfile, f, len(self.example))
226 a = array.array(self.typecode, 2*self.example)
233 b.fromfile(f, len(self.example))
234 self.assertEqual(b, array.array(self.typecode, self.example))
236 b.fromfile(f, len(self.example))
245 a = array.array(self.typecode, 2*self.example)
255 a = array.array(self.typecode, 2*self.example)
267 a = array.array(self.typecode, 2*self.example)
274 a = array.array(self.typecode, 2*self.example)
278 a = array.array(self.typecode, self.example)
314 a = array.array(self.typecode, self.example) \
315 + array.array(self.typecode, self.example[::-1])
318 array.array(self.typecode, self.example + self.example[::-1])
327 a = array.array(self.typecode, self.example[::-1])
329 a += array.array(self.typecode, 2*self.example)
333 array.array(self.typecode, self.example[::-1]+2*self.example)
335 a = array.array(self.typecode, self.example)
339 array.array(self.typecode, self.example + self.example)
348 a = 5*array.array(self.typecode, self.example)
351 array.array(self.typecode, 5*self.example)
354 a = array.array(self.typecode, self.example)*5
357 array.array(self.typecode, self.example*5)
360 a = 0*array.array(self.typecode, self.example)
366 a = (-1)*array.array(self.typecode, self.example)
375 a = array.array(self.typecode, self.example)
382 array.array(self.typecode, 5*self.example)
397 a = array.array(self.typecode, self.example)
404 a = array.array(self.typecode, self.example)
405 self.assertEntryEqual(a[0], self.example[0])
406 self.assertEntryEqual(a[0L], self.example[0])
407 self.assertEntryEqual(a[-1], self.example[-1])
408 self.assertEntryEqual(a[-1L], self.example[-1])
409 self.assertEntryEqual(a[len(self.example)-1], self.example[-1])
410 self.assertEntryEqual(a[-len(self.example)], self.example[0])
412 self.assertRaises(IndexError, a.__getitem__, len(self.example))
413 self.assertRaises(IndexError, a.__getitem__, -len(self.example)-1)
416 a = array.array(self.typecode, self.example)
420 a = array.array(self.typecode, self.example)
424 a = array.array(self.typecode, self.example)
428 a = array.array(self.typecode, self.example)
432 a = array.array(self.typecode, self.example)
433 a[len(self.example)-1] = a[0]
436 a = array.array(self.typecode, self.example)
437 a[-len(self.example)] = a[-1]
446 len(self.example), self.example[0]
451 -len(self.example)-1, self.example[0]
455 a = array.array(self.typecode, self.example)
459 array.array(self.typecode, self.example[1:])
462 a = array.array(self.typecode, self.example)
466 array.array(self.typecode, self.example[:-1])
469 a = array.array(self.typecode, self.example)
470 del a[len(self.example)-1]
473 array.array(self.typecode, self.example[:-1])
476 a = array.array(self.typecode, self.example)
477 del a[-len(self.example)]
480 array.array(self.typecode, self.example[1:])
485 self.assertRaises(IndexError, a.__delitem__, len(self.example))
486 self.assertRaises(IndexError, a.__delitem__, -len(self.example)-1)
489 a = array.array(self.typecode, self.example)
494 array.array(self.typecode, self.example[1:])
499 array.array(self.typecode, self.example[:1])
504 array.array(self.typecode, self.example[:-1])
509 array.array(self.typecode, self.example[-1:])
541 a = array.array(self.typecode, self.example)
551 a = array.array(self.typecode, self.example)
555 array.array(self.typecode, self.example + self.example[1:])
558 a = array.array(self.typecode, self.example)
562 array.array(self.typecode, self.example + self.example[-1:])
565 a = array.array(self.typecode, self.example)
569 array.array(self.typecode, self.example[:-1] + self.example)
572 a = array.array(self.typecode, self.example)
576 array.array(self.typecode, self.example[:1] + self.example)
579 a = array.array(self.typecode, self.example)
585 self.example[:1] + self.example + self.example[-1:]
589 a = array.array(self.typecode, self.example)
593 array.array(self.typecode, 2*self.example)
596 a = array.array(self.typecode, self.example)
600 array.array(self.typecode, self.example)
603 a = array.array(self.typecode, self.example)
607 array.array(self.typecode, self.example)
610 a = array.array(self.typecode, self.example)
614 array.array(self.typecode, 2*self.example)
617 a = array.array(self.typecode, self.example)
621 array.array(self.typecode, self.example[:1] + self.example + self.example[1:])
624 a = array.array(self.typecode, self.example)
628 array.array(self.typecode, 2*self.example)
631 a = array.array(self.typecode, self.example)
647 a = array.array(self.typecode, self.example)
662 example = 2*self.example
663 a = array.array(self.typecode, example)
665 for x in example:
666 self.assertEqual(a.index(x), example.index(x))
671 example = 2*self.example
672 a = array.array(self.typecode, example)
674 for x in example:
675 self.assertEqual(a.count(x), example.count(x))
680 for x in self.example:
681 example = 2*self.example
682 a = array.array(self.typecode, example)
683 pos = example.index(x)
684 example2 = example[:pos] + example[pos+1:]
688 a = array.array(self.typecode, self.example)
697 a = array.array(self.typecode, 2*self.example)
703 self.assertEntryEqual(a.pop(0), self.example[0])
706 array.array(self.typecode, self.example[1:]+self.example)
708 self.assertEntryEqual(a.pop(1), self.example[2])
711 array.array(self.typecode, self.example[1:2]+self.example[3:]+self.example)
713 self.assertEntryEqual(a.pop(0), self.example[1])
714 self.assertEntryEqual(a.pop(), self.example[-1])
717 array.array(self.typecode, self.example[3:]+self.example[:-1])
721 a = array.array(self.typecode, self.example)
726 array.array(self.typecode, self.example[::-1])
730 a = array.array(self.typecode, self.example)
732 a.extend(array.array(self.typecode, self.example[::-1]))
735 array.array(self.typecode, self.example+self.example[::-1])
738 a = array.array(self.typecode, self.example)
742 array.array(self.typecode, self.example+self.example)
748 a = array.array(self.typecode, self.example)
749 a.extend(self.example[::-1])
752 array.array(self.typecode, self.example+self.example[::-1])
756 a = array.array(self.typecode, iter(self.example))
757 b = array.array(self.typecode, self.example)
786 a = array.array(self.typecode, self.example)
792 s = array.array(self.typecode, self.example)
819 a = array.array(self.typecode, self.example)
820 self.assertRaises(TypeError, a.__setitem__, 0, self.example[:2])
824 example = '\x01azAZ\x00\xfe' variable in CharacterTest
855 a = array.array(self.typecode, self.example)
864 example = unicode(r'\x01\u263a\x00\ufeff', 'unicode-escape') variable in UnicodeTest
989 example = [-1, 0, 1, 42, 0x7f] variable in SignedNumberTest
1001 example = [0, 1, 17, 23, 42, 0xff] variable in UnsignedNumberTest
1014 a = array.array(self.typecode, self.example)
1078 example = [-42.0, 0, 42, 1e5, -1e10] variable in FPTest
1087 a = array.array(self.typecode, self.example)
1090 b = array.array(self.typecode, self.example)