| 1 | # file scalene/runningstats.py:59-61 |
| 2 | # lines [61] |
| 3 | # branches [] |
| 4 | |
| 5 | import pytest |
| 6 | from scalene.runningstats import RunningStats |
| 7 | |
| 8 | |
| 9 | def test_running_stats_mean(): |
| 10 | stats = RunningStats() |
| 11 | stats.push(1) |
| 12 | stats.push(2) |
| 13 | stats.push(3) |
| 14 | mean_value = stats.mean() |
| 15 | assert mean_value == 2, "Mean value should be 2 for the given inputs" |