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
Boxiang Sun
cython
Commits
210224e0
Commit
210224e0
authored
Jul 02, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of tests due to implicit signed.
parent
4686d44d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
30 deletions
+2
-30
tests/run/c_int_types_T255.pyx
tests/run/c_int_types_T255.pyx
+2
-2
tests/run/embedsignatures.pyx
tests/run/embedsignatures.pyx
+0
-28
No files found.
tests/run/c_int_types_T255.pyx
View file @
210224e0
...
...
@@ -215,7 +215,7 @@ def test_add_sshort(x, y):
>>> test_add_sshort(SSHORT_MIN, -1) #doctest: +ELLIPSIS
Traceback (most recent call last):
...
OverflowError: value too large to convert to s
igned s
hort
OverflowError: value too large to convert to short
>>> test_add_sshort(SSHORT_MIN, 0) == SSHORT_MIN
True
>>> test_add_sshort(SSHORT_MIN, 1) == SSHORT_MIN+1
...
...
@@ -227,7 +227,7 @@ def test_add_sshort(x, y):
>>> test_add_sshort(SSHORT_MAX, 1) #doctest: +ELLIPSIS
Traceback (most recent call last):
...
OverflowError: value too large to convert to s
igned s
hort
OverflowError: value too large to convert to short
"""
cdef
signed
short
r
=
x
+
y
return
r
...
...
tests/run/embedsignatures.pyx
View file @
210224e0
...
...
@@ -123,19 +123,12 @@ __doc__ = ur"""
>>> print(funcdoc(f_uc))
f_uc(unsigned char c) -> unsigned char
>>> print(funcdoc(f_sc))
f_sc(signed char c) -> signed char
>>> print(funcdoc(f_s))
f_s(short s) -> short
>>> print(funcdoc(f_us))
f_us(unsigned short s) -> unsigned short
>>> print(funcdoc(f_ss))
f_ss(signed short s) -> signed short
>>> print(funcdoc(f_i))
f_i(int i) -> int
...
...
@@ -143,9 +136,6 @@ __doc__ = ur"""
>>> print(funcdoc(f_ui))
f_ui(unsigned int i) -> unsigned int
>>> print(funcdoc(f_si))
f_si(signed int i) -> signed int
>>> print(funcdoc(f_bint))
f_bint(bool i) -> bool
...
...
@@ -156,9 +146,6 @@ __doc__ = ur"""
>>> print(funcdoc(f_ul))
f_ul(unsigned long l) -> unsigned long
>>> print(funcdoc(f_sl))
f_sl(signed long l) -> signed long
>>> print(funcdoc(f_L))
f_L(long long L) -> long long
...
...
@@ -166,9 +153,6 @@ __doc__ = ur"""
>>> print(funcdoc(f_uL))
f_uL(unsigned long long L) -> unsigned long long
>>> print(funcdoc(f_sL))
f_sL(signed long long L) -> signed long long
>>> print(funcdoc(f_f))
f_f(float f) -> float
...
...
@@ -333,9 +317,6 @@ cpdef short f_s(short s):
cpdef
unsigned
short
f_us
(
unsigned
short
s
):
return
s
cpdef
signed
short
f_ss
(
signed
short
s
):
return
s
cpdef
int
f_i
(
int
i
):
return
i
...
...
@@ -343,9 +324,6 @@ cpdef int f_i(int i):
cpdef
unsigned
int
f_ui
(
unsigned
int
i
):
return
i
cpdef
signed
int
f_si
(
signed
int
i
):
return
i
cpdef
bint
f_bint
(
bint
i
):
return
i
...
...
@@ -356,9 +334,6 @@ cpdef long f_l(long l):
cpdef
unsigned
long
f_ul
(
unsigned
long
l
):
return
l
cpdef
signed
long
f_sl
(
signed
long
l
):
return
l
cpdef
long
long
f_L
(
long
long
L
):
return
L
...
...
@@ -366,9 +341,6 @@ cpdef long long f_L(long long L):
cpdef
unsigned
long
long
f_uL
(
unsigned
long
long
L
):
return
L
cpdef
signed
long
long
f_sL
(
signed
long
long
L
):
return
L
cpdef
float
f_f
(
float
f
):
return
f
...
...
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