def test_atof(self):
     self.assertTrue(strop.atof(" 1 ") == 1.0)
     self.assertRaises(ValueError, strop.atof, " 1x")
     self.assertRaises(ValueError, strop.atof, " x1 ")
 def test_atof(self):
     self.assertTrue(strop.atof(" 1 ") == 1.0)
     self.assertRaises(ValueError, strop.atof, " 1x")
     self.assertRaises(ValueError, strop.atof, " x1 ")
Esempio n. 3
0
import warnings
Esempio n. 4
0
import warnings