def test_safeMin_list_all_numbers(self):
     self.assertEqual(glyph.safeMin([
         1,
         5.1,
         6,
     ]), 1)
 def test_safeMin_empty_string(self):
     self.assertEqual(glyph.safeMin(''), None)
 def test_safeMin_list_with_string(self):
     with self.assertRaises(TypeError):
         glyph.safeMin(['a', 10, 30])
 def test_safeMin_None(self):
     with self.assertRaises(TypeError):
         glyph.safeMin(None)
 def test_safeMin_number_not_list(self):
     with self.assertRaises(TypeError):
         glyph.safeMin(1)
Ejemplo n.º 6
0
 def test_safeMin_list_with_nan(self):
   self.assertEqual(glyph.safeMin([1,5.1,6,float('Nan')]), 1)
 def test_safeMin_list_with_nan(self):
     self.assertEqual(glyph.safeMin([1, 5.1, 6, float('Nan')]), 1)
Ejemplo n.º 8
0
 def test_safeMin_list_all_numbers(self):
   self.assertEqual(glyph.safeMin([1,5.1,6,]), 1)
Ejemplo n.º 9
0
 def test_safeMin_list_with_string(self):
   with self.assertRaises(TypeError):
     glyph.safeMin(['a',10,30])
Ejemplo n.º 10
0
 def test_safeMin_empty_string(self):
   self.assertEqual(glyph.safeMin(''), None)
Ejemplo n.º 11
0
 def test_safeMin_number_not_list(self):
   with self.assertRaises(TypeError):
     glyph.safeMin(1)
Ejemplo n.º 12
0
 def test_safeMin_None(self):
   with self.assertRaises(TypeError):
     glyph.safeMin(None)