Example #1
0
 def test_SQRT_with_neg_number(self):
     self.assertIsInstance(math.SQRT(-4), xlerrors.NumExcelError)
Example #2
0
 def test_SQRT_with_bad_arg(self):
     self.assertIsInstance(math.SQRT('bad'), xlerrors.ValueExcelError)
Example #3
0
 def test_SQRT(self):
     self.assertEqual(math.SQRT(4), 2)
     self.assertEqual(math.SQRT(4.0), 2.0)