Lines Matching refs:example
200 a.append(self.example[0])
203 a = array.array(self.typecode, self.example)
204 self.assertEqual(len(a), len(self.example))
207 a = array.array(self.typecode, self.example)
218 example = '\U00100100'
220 example = self.example
221 a = array.array(self.typecode, example)
224 b = array.array(self.typecode, example)
235 a = array.array(self.typecode, self.example)
242 a = array.array(self.typecode, self.example)
248 a = array.array(self.typecode, self.example)
256 a = array.array(self.typecode, self.example)
261 a = ArraySubclass(self.typecode, self.example)
285 orig = array.array(self.typecode, self.example)
322 a = array.array(self.typecode, self.example)
323 self.assertEqual(list(a), list(self.example))
331 self.assertEqual(list(a), list(self.example) + [self.outside])
334 a = array.array(self.typecode, self.example)
335 a.insert(0, self.example[0])
336 self.assertEqual(len(a), 1+len(self.example))
342 a = array.array(self.typecode, self.example)
343 a.insert(-1, self.example[0])
348 self.example[:-1] + self.example[:1] + self.example[-1:]
352 a = array.array(self.typecode, self.example)
353 a.insert(-1000, self.example[0])
356 array.array(self.typecode, self.example[:1] + self.example)
359 a = array.array(self.typecode, self.example)
360 a.insert(1000, self.example[0])
363 array.array(self.typecode, self.example + self.example[:1])
367 a = array.array(self.typecode, 2*self.example)
377 b.fromfile(f, len(self.example))
378 self.assertEqual(b, array.array(self.typecode, self.example))
380 self.assertRaises(EOFError, b.fromfile, f, len(self.example)+1)
394 self.assertRaises(OSError, a.fromfile, f, len(self.example))
400 a = array.array(self.typecode, 2*self.example)
407 b.fromfile(f, len(self.example))
408 self.assertEqual(b, array.array(self.typecode, self.example))
410 b.fromfile(f, len(self.example))
419 a = array.array(self.typecode, 2*self.example)
436 a = array.array(self.typecode, 2*self.example)
449 a = array.array(self.typecode, 2*self.example)
462 a = array.array(self.typecode, self.example)
467 a = array.array(self.typecode, 2*self.example)
474 a = array.array(self.typecode, 2*self.example)
478 a = array.array(self.typecode, self.example)
514 a = array.array(self.typecode, self.example) \
515 + array.array(self.typecode, self.example[::-1])
518 array.array(self.typecode, self.example + self.example[::-1])
527 a = array.array(self.typecode, self.example[::-1])
529 a += array.array(self.typecode, 2*self.example)
533 array.array(self.typecode, self.example[::-1]+2*self.example)
535 a = array.array(self.typecode, self.example)
539 array.array(self.typecode, self.example + self.example)
548 a = 5*array.array(self.typecode, self.example)
551 array.array(self.typecode, 5*self.example)
554 a = array.array(self.typecode, self.example)*5
557 array.array(self.typecode, self.example*5)
560 a = 0*array.array(self.typecode, self.example)
566 a = (-1)*array.array(self.typecode, self.example)
572 a = 5 * array.array(self.typecode, self.example[:1])
581 a = array.array(self.typecode, self.example)
588 array.array(self.typecode, 5*self.example)
603 a = array.array(self.typecode, self.example)
610 a = array.array(self.typecode, self.example)
611 self.assertEntryEqual(a[0], self.example[0])
612 self.assertEntryEqual(a[0], self.example[0])
613 self.assertEntryEqual(a[-1], self.example[-1])
614 self.assertEntryEqual(a[-1], self.example[-1])
615 self.assertEntryEqual(a[len(self.example)-1], self.example[-1])
616 self.assertEntryEqual(a[-len(self.example)], self.example[0])
618 self.assertRaises(IndexError, a.__getitem__, len(self.example))
619 self.assertRaises(IndexError, a.__getitem__, -len(self.example)-1)
622 a = array.array(self.typecode, self.example)
626 a = array.array(self.typecode, self.example)
630 a = array.array(self.typecode, self.example)
634 a = array.array(self.typecode, self.example)
638 a = array.array(self.typecode, self.example)
639 a[len(self.example)-1] = a[0]
642 a = array.array(self.typecode, self.example)
643 a[-len(self.example)] = a[-1]
652 len(self.example), self.example[0]
657 -len(self.example)-1, self.example[0]
661 a = array.array(self.typecode, self.example)
665 array.array(self.typecode, self.example[1:])
668 a = array.array(self.typecode, self.example)
672 array.array(self.typecode, self.example[:-1])
675 a = array.array(self.typecode, self.example)
676 del a[len(self.example)-1]
679 array.array(self.typecode, self.example[:-1])
682 a = array.array(self.typecode, self.example)
683 del a[-len(self.example)]
686 array.array(self.typecode, self.example[1:])
691 self.assertRaises(IndexError, a.__delitem__, len(self.example))
692 self.assertRaises(IndexError, a.__delitem__, -len(self.example)-1)
695 a = array.array(self.typecode, self.example)
700 array.array(self.typecode, self.example[1:])
705 array.array(self.typecode, self.example[:1])
710 array.array(self.typecode, self.example[:-1])
715 array.array(self.typecode, self.example[-1:])
747 a = array.array(self.typecode, self.example)
757 a = array.array(self.typecode, self.example)
761 array.array(self.typecode, self.example + self.example[1:])
764 a = array.array(self.typecode, self.example)
768 array.array(self.typecode, self.example + self.example[-1:])
771 a = array.array(self.typecode, self.example)
775 array.array(self.typecode, self.example[:-1] + self.example)
778 a = array.array(self.typecode, self.example)
782 array.array(self.typecode, self.example[:1] + self.example)
785 a = array.array(self.typecode, self.example)
791 self.example[:1] + self.example + self.example[-1:]
795 a = array.array(self.typecode, self.example)
799 array.array(self.typecode, 2*self.example)
802 a = array.array(self.typecode, self.example)
806 array.array(self.typecode, self.example)
809 a = array.array(self.typecode, self.example)
813 array.array(self.typecode, self.example)
816 a = array.array(self.typecode, self.example)
820 array.array(self.typecode, 2*self.example)
823 a = array.array(self.typecode, self.example)
827 array.array(self.typecode, self.example[:1] + self.example + self.example[1:])
830 a = array.array(self.typecode, self.example)
834 array.array(self.typecode, 2*self.example)
837 a = array.array(self.typecode, self.example)
851 a = array.array(self.typecode, self.example)
866 example = 2*self.example
867 a = array.array(self.typecode, example)
869 for x in example:
870 self.assertEqual(a.index(x), example.index(x))
875 example = 2*self.example
876 a = array.array(self.typecode, example)
878 for x in example:
879 self.assertEqual(a.count(x), example.count(x))
884 for x in self.example:
885 example = 2*self.example
886 a = array.array(self.typecode, example)
887 pos = example.index(x)
888 example2 = example[:pos] + example[pos+1:]
892 a = array.array(self.typecode, self.example)
901 a = array.array(self.typecode, 2*self.example)
907 self.assertEntryEqual(a.pop(0), self.example[0])
910 array.array(self.typecode, self.example[1:]+self.example)
912 self.assertEntryEqual(a.pop(1), self.example[2])
915 array.array(self.typecode, self.example[1:2]+self.example[3:]+self.example)
917 self.assertEntryEqual(a.pop(0), self.example[1])
918 self.assertEntryEqual(a.pop(), self.example[-1])
921 array.array(self.typecode, self.example[3:]+self.example[:-1])
925 a = array.array(self.typecode, self.example)
930 array.array(self.typecode, self.example[::-1])
934 a = array.array(self.typecode, self.example)
936 a.extend(array.array(self.typecode, self.example[::-1]))
939 array.array(self.typecode, self.example+self.example[::-1])
942 a = array.array(self.typecode, self.example)
946 array.array(self.typecode, self.example+self.example)
952 a = array.array(self.typecode, self.example)
953 a.extend(self.example[::-1])
956 array.array(self.typecode, self.example+self.example[::-1])
960 a = array.array(self.typecode, iter(self.example))
961 b = array.array(self.typecode, self.example)
990 a = array.array(self.typecode, self.example)
1025 s = array.array(self.typecode, self.example)
1053 a = array.array(self.typecode, self.example)
1092 a = array.array(self.typecode, self.example)
1093 self.assertRaises(TypeError, a.__setitem__, 0, self.example[:2])
1097 example = '\x01\u263a\x00\ufeff' variable in UnicodeTest
1253 example = [-1, 0, 1, 42, 0x7f] variable in SignedNumberTest
1266 example = [0, 1, 17, 23, 42, 0xff] variable in UnsignedNumberTest
1279 s = bytes(self.example)
1281 a = array.array(self.typecode, self.example)
1285 array.array(self.typecode, self.example+self.example)
1288 a = array.array(self.typecode, self.example)
1292 array.array(self.typecode, self.example+self.example[::-1])
1337 example = [-42.0, 0, 42, 1e5, -1e10] variable in FPTest
1356 a = array.array(self.typecode, self.example)
1359 b = array.array(self.typecode, self.example)