Exemplo n.º 1
0
 def test_AVERAGE(self):
     self.assertEqual(statistics.AVERAGE(xl.RangeData([[1, 2], [3, 4]])),
                      2.5)
Exemplo n.º 2
0
 def test_AVERAGE_numbers(self):
     self.assertEqual(statistics.AVERAGE(1, 2.0, 3, 4.0), 2.5)
Exemplo n.º 3
0
 def test_AVERAGE_without_any_numbers(self):
     self.assertEqual(statistics.AVERAGE(), 0)
Exemplo n.º 4
0
 def test_AVERAGE(self):
     self.assertEqual(
         statistics.AVERAGE(xltypes.Array([[1, 2], [3, 4]])), 2.5)