Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(119901)

Delta Between Two Patch Sets: Lib/ctypes/test/test_slicing.py

Issue 23670: Modifications to support iOS as a development platform
Left Patch Set: Created 3 years, 8 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/ctypes/test/test_returnfuncptrs.py ('k') | Lib/ctypes/test/test_stringptr.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 import os 1 import os
2 import unittest 2 import unittest
3 from ctypes import * 3 from ctypes import *
4 from ctypes.test import need_symbol 4 from ctypes.test import need_symbol
5 5
6 import _ctypes_test 6 import _ctypes_test
7 7
8 class SlicesTestCase(unittest.TestCase): 8 class SlicesTestCase(unittest.TestCase):
9 def test_getslice_cint(self): 9 def test_getslice_cint(self):
10 a = (c_int * 100)(*range(1100, 1200)) 10 a = (c_int * 100)(*range(1100, 1200))
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 self.assertEqual(res[:len(s)-1], tmpl) 159 self.assertEqual(res[:len(s)-1], tmpl)
160 self.assertEqual(res[:len(s)-1:], tmpl) 160 self.assertEqual(res[:len(s)-1:], tmpl)
161 self.assertEqual(res[len(s)-2:-1:-1], tmpl[::-1]) 161 self.assertEqual(res[len(s)-2:-1:-1], tmpl[::-1])
162 self.assertEqual(res[len(s)-2:5:-7], tmpl[:5:-7]) 162 self.assertEqual(res[len(s)-2:5:-7], tmpl[:5:-7])
163 dll.my_free(res) 163 dll.my_free(res)
164 164
165 ################################################################ 165 ################################################################
166 166
167 if __name__ == "__main__": 167 if __name__ == "__main__":
168 unittest.main() 168 unittest.main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+