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
b900281b
Commit
b900281b
authored
Aug 25, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added failing test for optimised float .conjugate() method
parent
68b35ca1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/builtin_float.py
tests/run/builtin_float.py
+34
-0
No files found.
tests/bugs.txt
View file @
b900281b
...
@@ -19,6 +19,7 @@ class_scope_T671
...
@@ -19,6 +19,7 @@ class_scope_T671
slice2_T636
slice2_T636
builtin_subtype_methods_T653
builtin_subtype_methods_T653
dict_values_in_expression
dict_values_in_expression
builtin_float
# CPython regression tests that don't current work:
# CPython regression tests that don't current work:
pyregr.test_signal
pyregr.test_signal
...
...
tests/run/builtin_float.py
0 → 100644
View file @
b900281b
import
sys
def
empty_float
():
"""
>>> float()
0.0
>>> empty_float()
0.0
"""
x
=
float
()
return
x
def
float_conjugate
():
"""
>>> float_call_conjugate()
1.5
"""
if
sys
.
version_info
>=
(
2
,
6
):
x
=
1.5
.
conjugate
()
else
:
x
=
1.5
return
x
def
float_call_conjugate
():
"""
>>> float_call_conjugate()
1.5
"""
if
sys
.
version_info
>=
(
2
,
6
):
x
=
float
(
1.5
).
conjugate
()
else
:
x
=
1.5
return
x
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