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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
Show 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)
9
"""
...
...
tests/run/carrays.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test1()
2
>>> test2()
...
...
tests/run/cdef_opt.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> a = A()
>>> a.foo()
(True, 'yo')
...
...
tests/run/cdefassign.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u"""
>>> test(1, 2)
4 1 2 2 0 7 8
"""
...
...
tests/run/cmp.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> single_py(1, 2)
True
>>> single_py(2, 1)
...
...
tests/run/extmember.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> s = Spam()
>>> s.e = s
>>> s.e = 1
...
...
tests/run/fmod.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> fmod(7, 1.25)
0.75
"""
...
...
tests/run/future_division.pyx
View file @
f630c04f
from
__future__
import
division
__doc__
=
"""
__doc__
=
u
"""
>>> from future_division import doit
>>> doit(1,2)
(0.5, 0)
...
...
tests/run/future_unicode_literals.pyx
View file @
f630c04f
...
...
@@ -2,14 +2,14 @@ from __future__ import unicode_literals
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
"""
__doc__
=
u
"""
>>> u == 'test'
True
>>> isinstance(u, str)
True
"""
else
:
__doc__
=
"""
__doc__
=
u
"""
>>> u == u'test'
True
>>> isinstance(u, unicode)
...
...
tests/run/int_literals.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> c_longs()
(1, 1L, -1L, 18446744073709551615L)
>>> py_longs()
(1, 1L, 100000000000000000000000000000000L, -100000000000000000000000000000000L)
"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u'L'
,
u''
)
def
c_longs
():
cdef
long
a
=
1L
cdef
unsigned
long
ua
=
1
UL
...
...
tests/run/iteratorexception.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> f()
"""
...
...
tests/run/literal_lists.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test_ints(100)
(100, 100, 100)
>>> test_chars("yo")
...
...
tests/run/longlongindex.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> D = set_longlong(2**40, 2**50, 2, "yelp")
>>> D[2**40]
'yelp'
...
...
tests/run/pure.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test_sizeof()
True
True
...
...
tests/run/slice_charptr.pyx
View file @
f630c04f
__doc__
=
"""
>>> do_slice("abcdef", 2, 3)
__doc__
=
u
"""
>>> do_slice("abcdef"
.encode(u"ASCII")
, 2, 3)
('c', 'cdef', 'ab', 'abcdef')
>>> do_slice("abcdef", 0, 5)
>>> do_slice("abcdef"
.encode(u"ASCII")
, 0, 5)
('abcde', 'abcdef', '', 'abcdef')
"""
...
...
tests/run/struct_conversion.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test_constructor(1,2,255)
{'y': 2.0, 'x': 1.0, 'color': 255}
>>> test_constructor(1,None,255)
...
...
tests/run/temps_corner1.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> B().coeffs_bitsize()
[2]
"""
...
...
tests/run/unsigned.pyx
View file @
f630c04f
__doc__
=
"""
__doc__
=
u
"""
>>> test_signed()
3 <type 'int'>
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