Esempio n. 1
0
 def test_neginf(self):
     self.assertEqual("-inf", cat.convert_to_string(-np.inf))
Esempio n. 2
0
 def test_nan(self):
     self.assertEqual("nan", cat.convert_to_string(np.nan))
Esempio n. 3
0
 def test_posinf(self):
     self.assertEqual("inf", cat.convert_to_string(np.inf))
Esempio n. 4
0
 def test_unicode(self):
     self.assertEqual("Здравствуйте мир",
                      cat.convert_to_string("Здравствуйте мир"))
Esempio n. 5
0
 def test_decimal(self):
     self.assertEqual("3.14", cat.convert_to_string(3.14))
Esempio n. 6
0
 def test_convert_to_string(self, expected, test):
     assert expected == cat.convert_to_string(test)
Esempio n. 7
0
 def test_string(self):
     self.assertEqual("abc", cat.convert_to_string("abc"))
Esempio n. 8
0
 def test_neginf(self):
     self.assertEqual("-inf", cat.convert_to_string(-np.inf))
Esempio n. 9
0
 def test_convert_to_string(self, expected, test):
     assert expected == cat.convert_to_string(test)
Esempio n. 10
0
 def test_posinf(self):
     self.assertEqual("inf", cat.convert_to_string(np.inf))
Esempio n. 11
0
 def test_nan(self):
     self.assertEqual("nan", cat.convert_to_string(np.nan))
Esempio n. 12
0
 def test_decimal(self):
     self.assertEqual("3.14", cat.convert_to_string(3.14))
Esempio n. 13
0
 def test_unicode(self):
     self.assertEqual("Здравствуйте мир",
                      cat.convert_to_string("Здравствуйте мир"))
Esempio n. 14
0
 def test_string(self):
     self.assertEqual("abc", cat.convert_to_string("abc"))