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
99085010
Commit
99085010
authored
Aug 17, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release'
parents
9c5b402b
8c559493
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
Cython/Compiler/Tests/TestTypes.py
Cython/Compiler/Tests/TestTypes.py
+19
-0
No files found.
Cython/Compiler/Tests/TestTypes.py
0 → 100644
View file @
99085010
from
__future__
import
absolute_import
import
unittest
import
Cython.Compiler.PyrexTypes
as
PT
class
TestMethodDispatcherTransform
(
unittest
.
TestCase
):
def
test_widest_numeric_type
(
self
):
def
assert_widest
(
type1
,
type2
,
widest
):
self
.
assertEqual
(
widest
,
PT
.
widest_numeric_type
(
type1
,
type2
))
assert_widest
(
PT
.
c_int_type
,
PT
.
c_long_type
,
PT
.
c_long_type
)
assert_widest
(
PT
.
c_double_type
,
PT
.
c_long_type
,
PT
.
c_double_type
)
assert_widest
(
PT
.
c_longdouble_type
,
PT
.
c_long_type
,
PT
.
c_longdouble_type
)
cenum
=
PT
.
CEnumType
(
"E"
,
"cenum"
,
typedef_flag
=
False
)
assert_widest
(
PT
.
c_int_type
,
cenum
,
PT
.
c_int_type
)
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