Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fb985cb5
Commit
fb985cb5
authored
Dec 29, 2001
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF Patch #497487 add test to compare conjugate of a complex number
parent
01046226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/test/test_complex.py
Lib/test/test_complex.py
+4
-1
No files found.
Lib/test/test_complex.py
View file @
fb985cb5
from
test_support
import
TestFailed
from
test_support
import
TestFailed
,
vereq
from
random
import
random
# These tests ensure that complex math does the right thing; tests of
...
...
@@ -63,6 +63,9 @@ for i in range(100):
if
complex
(
0.0
,
0.0
):
raise
TestFailed
(
"complex(0.0, 0.0) should be false"
)
if
vereq
(
complex
(
5.3
,
9.8
).
conjugate
(),
5.3
-
9.8j
):
raise
TestFailed
(
"complex.conjugate() didn't work"
)
try
:
print
int
(
5
+
3j
)
except
TypeError
:
...
...
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