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
5bc7a444
Commit
5bc7a444
authored
May 03, 2011
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_math.py: Use correct signs on zeros for expected fmod results.
parent
0cc28b7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Lib/test/test_math.py
Lib/test/test_math.py
+6
-6
No files found.
Lib/test/test_math.py
View file @
5bc7a444
...
@@ -456,12 +456,12 @@ class MathTests(unittest.TestCase):
...
@@ -456,12 +456,12 @@ class MathTests(unittest.TestCase):
def
testFmod
(
self
):
def
testFmod
(
self
):
self
.
assertRaises
(
TypeError
,
math
.
fmod
)
self
.
assertRaises
(
TypeError
,
math
.
fmod
)
self
.
ftest
(
'fmod(10,
1)'
,
math
.
fmod
(
10
,
1
),
0
)
self
.
ftest
(
'fmod(10,
1)'
,
math
.
fmod
(
10
,
1
),
0.
0
)
self
.
ftest
(
'fmod(10,
0.5)'
,
math
.
fmod
(
10
,
0.5
),
0
)
self
.
ftest
(
'fmod(10,
0.5)'
,
math
.
fmod
(
10
,
0.5
),
0.
0
)
self
.
ftest
(
'fmod(10,
1.5)'
,
math
.
fmod
(
10
,
1.5
),
1
)
self
.
ftest
(
'fmod(10,
1.5)'
,
math
.
fmod
(
10
,
1.5
),
1.0
)
self
.
ftest
(
'fmod(-10,
1)'
,
math
.
fmod
(
-
10
,
1
),
0
)
self
.
ftest
(
'fmod(-10,
1)'
,
math
.
fmod
(
-
10
,
1
),
-
0.
0
)
self
.
ftest
(
'fmod(-10,
0.5)'
,
math
.
fmod
(
-
10
,
0.5
),
0
)
self
.
ftest
(
'fmod(-10,
0.5)'
,
math
.
fmod
(
-
10
,
0.5
),
-
0.
0
)
self
.
ftest
(
'fmod(-10,
1.5)'
,
math
.
fmod
(
-
10
,
1.5
),
-
1
)
self
.
ftest
(
'fmod(-10,
1.5)'
,
math
.
fmod
(
-
10
,
1.5
),
-
1.0
)
self
.
assertTrue
(
math
.
isnan
(
math
.
fmod
(
NAN
,
1.
)))
self
.
assertTrue
(
math
.
isnan
(
math
.
fmod
(
NAN
,
1.
)))
self
.
assertTrue
(
math
.
isnan
(
math
.
fmod
(
1.
,
NAN
)))
self
.
assertTrue
(
math
.
isnan
(
math
.
fmod
(
1.
,
NAN
)))
self
.
assertTrue
(
math
.
isnan
(
math
.
fmod
(
NAN
,
NAN
)))
self
.
assertTrue
(
math
.
isnan
(
math
.
fmod
(
NAN
,
NAN
)))
...
...
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