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