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
Gwenaël Samain
cython
Commits
f84705a3
Commit
f84705a3
authored
Oct 10, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test fixes
parent
a5cc7572
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
tests/run/embedsignatures.pyx
tests/run/embedsignatures.pyx
+4
-4
tests/run/type_inference.pyx
tests/run/type_inference.pyx
+1
-1
tests/run/typed_slice.pyx
tests/run/typed_slice.pyx
+3
-3
No files found.
tests/run/embedsignatures.pyx
View file @
f84705a3
...
...
@@ -68,10 +68,10 @@ __doc__ = ur"""
'with_doc_4(int a, str b, list c) -> str\n\n Existing string\n '
>>> f_sd.__doc__
"f_sd(str s=
u
'spam')"
"f_sd(str s='spam')"
>>> cf_sd.__doc__
"cf_sd(str s=
u
'spam') -> str"
"cf_sd(str s='spam') -> str"
>>> types.__doc__
'types(Ext a, int b, unsigned short c, float d, e)'
...
...
@@ -219,10 +219,10 @@ cpdef str with_doc_4(int a, str b, list c):
"""
return
b
def
f_sd
(
str
s
=
u
'spam'
):
def
f_sd
(
str
s
=
'spam'
):
return
s
cpdef
str
cf_sd
(
str
s
=
u
'spam'
):
cpdef
str
cf_sd
(
str
s
=
'spam'
):
return
s
cpdef
char
f_c
(
char
c
):
...
...
tests/run/type_inference.pyx
View file @
f84705a3
...
...
@@ -23,7 +23,7 @@ def simple():
b
=
b"abc"
assert
typeof
(
b
)
==
"char *"
,
typeof
(
b
)
s
=
"abc"
assert
typeof
(
s
)
==
"
Python
object"
,
typeof
(
s
)
assert
typeof
(
s
)
==
"
str
object"
,
typeof
(
s
)
u
=
u"xyz"
assert
typeof
(
u
)
==
"unicode object"
,
typeof
(
u
)
L
=
[
1
,
2
,
3
]
...
...
tests/run/typed_slice.pyx
View file @
f84705a3
...
...
@@ -52,13 +52,13 @@ def slice_list_assign(list l, value):
def
slice_charp
(
py_string_arg
):
cdef
str
py_string
=
py_string_arg
.
encode
(
u'ASCII'
)
cdef
bytes
py_string
=
py_string_arg
.
encode
(
u'ASCII'
)
cdef
char
*
s
=
py_string
return
s
[
1
:
3
].
decode
(
u'ASCII'
)
def
slice_charp_repeat
(
py_string_arg
):
cdef
str
py_string
=
py_string_arg
.
encode
(
u'ASCII'
)
cdef
bytes
py_string
=
py_string_arg
.
encode
(
u'ASCII'
)
cdef
char
*
s
=
py_string
cdef
str
slice_val
=
s
[
1
:
6
]
cdef
bytes
slice_val
=
s
[
1
:
6
]
s
=
slice_val
return
s
[
1
:
3
].
decode
(
u'ASCII'
)
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