Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f630c04f
Commit
f630c04f
authored
Feb 21, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unicode test fixes
parent
f0a69791
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
26 additions
and
22 deletions
+26
-22
tests/run/call_crash.pyx
tests/run/call_crash.pyx
+1
-1
tests/run/carrays.pyx
tests/run/carrays.pyx
+1
-1
tests/run/cdef_opt.pyx
tests/run/cdef_opt.pyx
+1
-1
tests/run/cdefassign.pyx
tests/run/cdefassign.pyx
+1
-2
tests/run/cmp.pyx
tests/run/cmp.pyx
+1
-1
tests/run/extmember.pyx
tests/run/extmember.pyx
+1
-1
tests/run/fmod.pyx
tests/run/fmod.pyx
+1
-1
tests/run/future_division.pyx
tests/run/future_division.pyx
+1
-1
tests/run/future_unicode_literals.pyx
tests/run/future_unicode_literals.pyx
+2
-2
tests/run/int_literals.pyx
tests/run/int_literals.pyx
+6
-1
tests/run/iteratorexception.pyx
tests/run/iteratorexception.pyx
+1
-1
tests/run/literal_lists.pyx
tests/run/literal_lists.pyx
+1
-1
tests/run/longlongindex.pyx
tests/run/longlongindex.pyx
+1
-1
tests/run/pure.pyx
tests/run/pure.pyx
+1
-1
tests/run/slice_charptr.pyx
tests/run/slice_charptr.pyx
+3
-3
tests/run/struct_conversion.pyx
tests/run/struct_conversion.pyx
+1
-1
tests/run/temps_corner1.pyx
tests/run/temps_corner1.pyx
+1
-1
tests/run/unsigned.pyx
tests/run/unsigned.pyx
+1
-1
No files found.
tests/run/call_crash.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> A().test(3)
>>> A().test(3)
9
9
"""
"""
...
...
tests/run/carrays.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test1()
>>> test1()
2
2
>>> test2()
>>> test2()
...
...
tests/run/cdef_opt.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> a = A()
>>> a = A()
>>> a.foo()
>>> a.foo()
(True, 'yo')
(True, 'yo')
...
...
tests/run/cdefassign.pyx
View file @
f630c04f
__doc__
=
u"""
__doc__
=
"""
>>> test(1, 2)
>>> test(1, 2)
4 1 2 2 0 7 8
4 1 2 2 0 7 8
"""
"""
...
...
tests/run/cmp.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> single_py(1, 2)
>>> single_py(1, 2)
True
True
>>> single_py(2, 1)
>>> single_py(2, 1)
...
...
tests/run/extmember.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> s = Spam()
>>> s = Spam()
>>> s.e = s
>>> s.e = s
>>> s.e = 1
>>> s.e = 1
...
...
tests/run/fmod.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> fmod(7, 1.25)
>>> fmod(7, 1.25)
0.75
0.75
"""
"""
...
...
tests/run/future_division.pyx
View file @
f630c04f
from
__future__
import
division
from
__future__
import
division
__doc__
=
"""
__doc__
=
u
"""
>>> from future_division import doit
>>> from future_division import doit
>>> doit(1,2)
>>> doit(1,2)
(0.5, 0)
(0.5, 0)
...
...
tests/run/future_unicode_literals.pyx
View file @
f630c04f
...
@@ -2,14 +2,14 @@ from __future__ import unicode_literals
...
@@ -2,14 +2,14 @@ from __future__ import unicode_literals
import
sys
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
"""
__doc__
=
u
"""
>>> u == 'test'
>>> u == 'test'
True
True
>>> isinstance(u, str)
>>> isinstance(u, str)
True
True
"""
"""
else
:
else
:
__doc__
=
"""
__doc__
=
u
"""
>>> u == u'test'
>>> u == u'test'
True
True
>>> isinstance(u, unicode)
>>> isinstance(u, unicode)
...
...
tests/run/int_literals.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> c_longs()
>>> c_longs()
(1, 1L, -1L, 18446744073709551615L)
(1, 1L, -1L, 18446744073709551615L)
>>> py_longs()
>>> py_longs()
(1, 1L, 100000000000000000000000000000000L, -100000000000000000000000000000000L)
(1, 1L, 100000000000000000000000000000000L, -100000000000000000000000000000000L)
"""
"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u'L'
,
u''
)
def
c_longs
():
def
c_longs
():
cdef
long
a
=
1L
cdef
long
a
=
1L
cdef
unsigned
long
ua
=
1
UL
cdef
unsigned
long
ua
=
1
UL
...
...
tests/run/iteratorexception.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> f()
>>> f()
"""
"""
...
...
tests/run/literal_lists.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test_ints(100)
>>> test_ints(100)
(100, 100, 100)
(100, 100, 100)
>>> test_chars("yo")
>>> test_chars("yo")
...
...
tests/run/longlongindex.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> D = set_longlong(2**40, 2**50, 2, "yelp")
>>> D = set_longlong(2**40, 2**50, 2, "yelp")
>>> D[2**40]
>>> D[2**40]
'yelp'
'yelp'
...
...
tests/run/pure.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test_sizeof()
>>> test_sizeof()
True
True
True
True
...
...
tests/run/slice_charptr.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> do_slice("abcdef", 2, 3)
>>> do_slice("abcdef"
.encode(u"ASCII")
, 2, 3)
('c', 'cdef', 'ab', 'abcdef')
('c', 'cdef', 'ab', 'abcdef')
>>> do_slice("abcdef", 0, 5)
>>> do_slice("abcdef"
.encode(u"ASCII")
, 0, 5)
('abcde', 'abcdef', '', 'abcdef')
('abcde', 'abcdef', '', 'abcdef')
"""
"""
...
...
tests/run/struct_conversion.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test_constructor(1,2,255)
>>> test_constructor(1,2,255)
{'y': 2.0, 'x': 1.0, 'color': 255}
{'y': 2.0, 'x': 1.0, 'color': 255}
>>> test_constructor(1,None,255)
>>> test_constructor(1,None,255)
...
...
tests/run/temps_corner1.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> B().coeffs_bitsize()
>>> B().coeffs_bitsize()
[2]
[2]
"""
"""
...
...
tests/run/unsigned.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test_signed()
>>> test_signed()
3 <type 'int'>
3 <type 'int'>
9 <type 'long'>
9 <type 'long'>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment