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

Method test_ints

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

Source from the content-addressed store, hash-verified

1348 self.assertEqual(self.func([1e100, 1, 3, -1e100]), 1)
1349
1350 def test_ints(self):
1351 # Test mean with ints.
1352 data = [0, 1, 2, 3, 3, 3, 4, 5, 5, 6, 7, 7, 7, 7, 8, 9]
1353 random.shuffle(data)
1354 self.assertEqual(self.func(data), 4.8125)
1355
1356 def test_floats(self):
1357 # Test mean with floats.

Callers

nothing calls this directly

Calls 3

shuffleMethod · 0.80
assertEqualMethod · 0.45
funcMethod · 0.45

Tested by

no test coverage detected