[Python-checkins] CVS: python/dist/src/Lib/test test_math.py,1.2,1.3

Guido van Rossum python-dev@python.org
Thu, 11 May 2000 14:19:44 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Lib/test
In directory eric:/projects/python/develop/guido/src/Lib/test

Modified Files:
	test_math.py 
Log Message:
Added math.rint() -- round according to current IEEE754 mode

Index: test_math.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/test/test_math.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** test_math.py	1996/08/29 19:00:46	1.2
--- test_math.py	2000/05/11 18:19:41	1.3
***************
*** 130,133 ****
--- 130,139 ----
  testit('pow(2,-1)', math.pow(2,-1), 0.5)
  
+ print 'rint'
+ testit('rint(0.7)', math.rint(0.7), 1)
+ testit('rint(-0.3)', math.rint(-0.3), 0)
+ testit('rint(2.5)', math.rint(2.5), 2)
+ testit('rint(3.5)', math.rint(3.5), 4) 
+ 
  print 'sin'
  testit('sin(0)', math.sin(0), 0)