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

Delta Between Two Patch Sets: Lib/ctypes/test/test_unicode.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_stringptr.py ('k') | Lib/ctypes/test/test_values.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 import ctypes 3 import ctypes
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 @need_symbol('c_wchar') 8 @need_symbol('c_wchar')
9 class UnicodeTestCase(unittest.TestCase): 9 class UnicodeTestCase(unittest.TestCase):
10 def test_wcslen(self): 10 def test_wcslen(self):
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 buf = ctypes.create_string_buffer(b"ab\xe4\xf6\xfc") 48 buf = ctypes.create_string_buffer(b"ab\xe4\xf6\xfc")
49 self.assertEqual(buf[:], b"ab\xe4\xf6\xfc\0") 49 self.assertEqual(buf[:], b"ab\xe4\xf6\xfc\0")
50 self.assertEqual(buf[::], b"ab\xe4\xf6\xfc\0") 50 self.assertEqual(buf[::], b"ab\xe4\xf6\xfc\0")
51 self.assertEqual(buf[::-1], b'\x00\xfc\xf6\xe4ba') 51 self.assertEqual(buf[::-1], b'\x00\xfc\xf6\xe4ba')
52 self.assertEqual(buf[::2], b'a\xe4\xfc') 52 self.assertEqual(buf[::2], b'a\xe4\xfc')
53 self.assertEqual(buf[6:5:-1], b"") 53 self.assertEqual(buf[6:5:-1], b"")
54 54
55 55
56 if __name__ == '__main__': 56 if __name__ == '__main__':
57 unittest.main() 57 unittest.main()
LEFTRIGHT

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