Commit 210224e0 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix a couple of tests due to implicit signed.

parent 4686d44d
......@@ -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 signed short
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 signed short
OverflowError: value too large to convert to short
"""
cdef signed short r = x + y
return r
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment