Cython has moved to github.
cython-devel
view tests/run/unicodeliterals.pyx @ 60:5e3ecc4b1cbe
extensive test case for unicode literals
| author | Stefan Behnel <scoder@users.berlios.de> |
|---|---|
| date | Thu Mar 06 11:16:08 2008 +0100 (4 years ago) |
| parents | |
| children | 8e59e7769514 |
line source
1 # -*- coding: utf-8 -*-
3 __doc__ = r"""
4 >>> sa
5 'abc'
6 >>> ua
7 u'abc'
8 >>> b
9 u'123'
10 >>> c
11 u'S\xf8k ik'
12 >>> d
13 u'\xfc\xd6\xe4'
14 >>> e
15 u'\x03g\xf8\uf8d2S\xf8k ik'
16 >>> f
17 u'\xf8'
18 >>> add
19 u'S\xf8k ik\xfc\xd6\xe4abc'
20 """ + u"""
21 >>> sa == 'abc'
22 True
23 >>> ua == u'abc'
24 True
25 >>> b == u'123'
26 True
27 >>> c == u'Søk ik'
28 True
29 >>> d == u'üÖä'
30 True
31 >>> e == u'\x03\x67\xf8\uf8d2Søk ik'
32 True
33 >>> f == u'\xf8'
34 True
35 >>> add == u'Søk ik' + u'üÖä' + 'abc'
36 True
37 """
39 sa = 'abc'
40 ua = u'abc'
42 b = u'123'
43 c = u'Søk ik'
44 d = u'üÖä'
45 e = u'\x03\x67\xf8\uf8d2Søk ik'
46 f = u'\xf8'
48 add = u'Søk ik' + u'üÖä' + 'abc'
