Skip to content

Commit e58c17c

Browse files
committed
Re-enable tests.
1 parent db06089 commit e58c17c

File tree

1 file changed

+15
-15
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+15
-15
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_math.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -758,21 +758,21 @@ def testAtan2(self):
758758
def testCos(self):
759759
self.assertRaises(TypeError, math.cos)
760760
self.ftest('cos(-pi/2)', math.cos(-math.pi/2), 0, abs_tol=ulp(1))
761-
# self.ftest('cos(0)', math.cos(0), 1)
762-
# self.ftest('cos(pi/2)', math.cos(math.pi/2), 0, abs_tol=ulp(1))
763-
# self.ftest('cos(pi)', math.cos(math.pi), -1)
764-
# try:
765-
# self.assertTrue(math.isnan(math.cos(INF)))
766-
# self.assertTrue(math.isnan(math.cos(NINF)))
767-
# except ValueError:
768-
# self.assertRaises(ValueError, math.cos, INF)
769-
# self.assertRaises(ValueError, math.cos, NINF)
770-
# self.assertTrue(math.isnan(math.cos(NAN)))
771-
#
772-
# #test of specializations
773-
# self.ftest('cos(BIG_INT)', math.cos(BIG_INT), 0.4145587418469303)
774-
# self.ftest('cos(MyFloat())', math.cos(MyFloat()), 0.8253356149096783)
775-
# self.assertRaises(TypeError, math.cos, 'ahoj')
761+
self.ftest('cos(0)', math.cos(0), 1)
762+
self.ftest('cos(pi/2)', math.cos(math.pi/2), 0, abs_tol=ulp(1))
763+
self.ftest('cos(pi)', math.cos(math.pi), -1)
764+
try:
765+
self.assertTrue(math.isnan(math.cos(INF)))
766+
self.assertTrue(math.isnan(math.cos(NINF)))
767+
except ValueError:
768+
self.assertRaises(ValueError, math.cos, INF)
769+
self.assertRaises(ValueError, math.cos, NINF)
770+
self.assertTrue(math.isnan(math.cos(NAN)))
771+
772+
#test of specializations
773+
self.ftest('cos(BIG_INT)', math.cos(BIG_INT), 0.4145587418469303)
774+
self.ftest('cos(MyFloat())', math.cos(MyFloat()), 0.8253356149096783)
775+
self.assertRaises(TypeError, math.cos, 'ahoj')
776776

777777
def testCosh(self):
778778
self.assertRaises(TypeError, math.cosh)

0 commit comments

Comments
 (0)