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
b62774ad
Commit
b62774ad
authored
Apr 28, 2019
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend test.
parent
554f5e50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
tests/run/tuple_constants.pyx
tests/run/tuple_constants.pyx
+23
-2
No files found.
tests/run/tuple_constants.pyx
View file @
b62774ad
...
...
@@ -139,10 +139,31 @@ def constant_types_comparing_equal():
>>> constant_types_comparing_equal()
((False, False), (0, 0), (0.0, 0.0), (0, False), (False, 0.0), (0, 0.0))
"""
b
int
_tuple
=
(
False
,
False
)
b
ool
_tuple
=
(
False
,
False
)
int_tuple
=
(
0
,
0
)
float_tuple
=
(
0.0
,
0.0
)
int_bool
=
(
0
,
False
)
bool_float
=
(
False
,
0.0
)
int_float
=
(
0
,
0.0
)
return
bint_tuple
,
int_tuple
,
float_tuple
,
int_bool
,
bool_float
,
int_float
assert
bool_tuple
is
(
False
,
False
)
assert
int_tuple
is
(
0
,
0
)
assert
bool_tuple
==
int_tuple
assert
bool_tuple
is
not
int_tuple
assert
float_tuple
is
(
0.
,
0.
)
assert
float_tuple
==
int_tuple
assert
float_tuple
is
not
int_tuple
assert
int_bool
is
(
0
,
False
)
assert
int_bool
==
bool_tuple
assert
int_bool
is
not
bool_tuple
assert
int_bool
is
not
int_tuple
assert
bool_float
is
(
False
,
0.
)
assert
bool_float
==
bool_tuple
assert
bool_float
is
not
bool_tuple
assert
bool_float
is
not
float_tuple
assert
int_float
is
(
0
,
0.
)
assert
int_float
==
int_tuple
assert
int_float
is
not
int_tuple
assert
int_float
is
not
float_tuple
return
bool_tuple
,
int_tuple
,
float_tuple
,
int_bool
,
bool_float
,
int_float
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