コード例 #1
0
ファイル: test_category.py プロジェクト: 4over7/matplotlib
 def test_neginf(self):
     self.assertEqual("-inf", cat.convert_to_string(-np.inf))
コード例 #2
0
ファイル: test_category.py プロジェクト: 4over7/matplotlib
 def test_nan(self):
     self.assertEqual("nan", cat.convert_to_string(np.nan))
コード例 #3
0
ファイル: test_category.py プロジェクト: 4over7/matplotlib
 def test_posinf(self):
     self.assertEqual("inf", cat.convert_to_string(np.inf))
コード例 #4
0
ファイル: test_category.py プロジェクト: 4over7/matplotlib
 def test_unicode(self):
     self.assertEqual("Здравствуйте мир",
                      cat.convert_to_string("Здравствуйте мир"))
コード例 #5
0
ファイル: test_category.py プロジェクト: 4over7/matplotlib
 def test_decimal(self):
     self.assertEqual("3.14", cat.convert_to_string(3.14))
コード例 #6
0
 def test_convert_to_string(self, expected, test):
     assert expected == cat.convert_to_string(test)
コード例 #7
0
ファイル: test_category.py プロジェクト: 4over7/matplotlib
 def test_string(self):
     self.assertEqual("abc", cat.convert_to_string("abc"))
コード例 #8
0
 def test_neginf(self):
     self.assertEqual("-inf", cat.convert_to_string(-np.inf))
コード例 #9
0
ファイル: test_category.py プロジェクト: afvincent/matplotlib
 def test_convert_to_string(self, expected, test):
     assert expected == cat.convert_to_string(test)
コード例 #10
0
 def test_posinf(self):
     self.assertEqual("inf", cat.convert_to_string(np.inf))
コード例 #11
0
 def test_nan(self):
     self.assertEqual("nan", cat.convert_to_string(np.nan))
コード例 #12
0
 def test_decimal(self):
     self.assertEqual("3.14", cat.convert_to_string(3.14))
コード例 #13
0
 def test_unicode(self):
     self.assertEqual("Здравствуйте мир",
                      cat.convert_to_string("Здравствуйте мир"))
コード例 #14
0
 def test_string(self):
     self.assertEqual("abc", cat.convert_to_string("abc"))