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 ")
Beispiel #3
0
import warnings
Beispiel #4
0
import warnings