MCPcopy Index your code
hub / github.com/python/cpython / test_empty_data

Method test_empty_data

Lib/test/test_statistics.py:1195–1198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1193 self.func = statistics._sum
1194
1195 def test_empty_data(self):
1196 # Override test for empty data.
1197 for data in ([], (), iter([])):
1198 self.assertEqual(self.func(data), (int, Fraction(0), 0))
1199
1200 def test_ints(self):
1201 self.assertEqual(self.func([1, 5, 3, -4, -8, 20, 42, 1]),

Callers

nothing calls this directly

Calls 3

FractionClass · 0.90
assertEqualMethod · 0.45
funcMethod · 0.45

Tested by

no test coverage detected