def test_any_list_with_nan(self):
     self.assertTrue(glyph.any([1, 5.1, 6, float('Nan')]), 12.1)
 def test_any_list_with_string(self):
     self.assertTrue(glyph.any(['a', 10, 30]))
 def test_any_list_all_numbers(self):
     self.assertTrue(glyph.any([
         1,
         5.1,
         6,
     ]))
 def test_any_list_with_false(self):
     self.assertFalse(glyph.any([False]))
 def test_any_list_with_0(self):
     self.assertFalse(glyph.any([0]))
 def test_any_number_not_list(self):
     with self.assertRaises(TypeError):
         glyph.any(1)
 def test_any_empty_string(self):
     self.assertFalse(glyph.any(''))
Exemplo n.º 8
0
 def test_any_list_with_nan(self):
   self.assertTrue(glyph.any([1,5.1,6,float('Nan')]), 12.1)
 def test_any_None(self):
     with self.assertRaises(TypeError):
         glyph.any(None)
Exemplo n.º 10
0
 def test_any_list_with_string(self):
   self.assertTrue(glyph.any(['a',10,30]))
Exemplo n.º 11
0
 def test_any_list_all_numbers(self):
   self.assertTrue(glyph.any([1,5.1,6,]))
Exemplo n.º 12
0
 def test_any_list_with_0(self):
   self.assertFalse(glyph.any([0]))
Exemplo n.º 13
0
 def test_any_list_with_false(self):
   self.assertFalse(glyph.any([False]))
Exemplo n.º 14
0
 def test_any_empty_string(self):
   self.assertFalse(glyph.any(''))
Exemplo n.º 15
0
 def test_any_number_not_list(self):
   with self.assertRaises(TypeError):
     glyph.any(1)
Exemplo n.º 16
0
 def test_any_None(self):
   with self.assertRaises(TypeError):
     glyph.any(None)