mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Unixware 7 support by Billy G. Allie (SF patch 413011)
This commit is contained in:
parent
11e89c72c1
commit
2242f2fbd0
15 changed files with 2406 additions and 508 deletions
|
@ -1,6 +1,7 @@
|
|||
# Python test set -- math module
|
||||
# XXXX Should not do tests around zero only
|
||||
|
||||
import sys
|
||||
from test_support import *
|
||||
|
||||
seps='1e-05'
|
||||
|
@ -35,7 +36,10 @@ testit('atan(1)', math.atan(1), math.pi/4)
|
|||
print 'atan2'
|
||||
testit('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
|
||||
testit('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4)
|
||||
testit('atan2(0, 1)', math.atan2(0, 1), 0)
|
||||
if sys.platform in ['unixware7']:
|
||||
testit('atan2(0, 1)', math.atan2(0, 1), math.pi)
|
||||
else:
|
||||
testit('atan2(0, 1)', math.atan2(0, 1), 0)
|
||||
testit('atan2(1, 1)', math.atan2(1, 1), math.pi/4)
|
||||
testit('atan2(1, 0)', math.atan2(1, 0), math.pi/2)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue