Beispiel #1
0
 def test_MOD_with_bad_arg(self):
     self.assertIsInstance(math.MOD('bad', 2), xlerrors.ValueExcelError)
     self.assertIsInstance(math.MOD(1, 'bad'), xlerrors.ValueExcelError)
Beispiel #2
0
 def test_MOD_with_float(self):
     self.assertEqual(math.MOD(1.0, 2), 1)
Beispiel #3
0
 def test_MOD_with_string(self):
     self.assertEqual(math.MOD('1.0', 2), 1)
Beispiel #4
0
 def test_MOD(self):
     self.assertEqual(math.MOD(1, 2), 1)