diff --git a/tests/unit_tests/test_stats.py b/tests/unit_tests/test_stats.py index 8e38a7b48..c2578ea8b 100644 --- a/tests/unit_tests/test_stats.py +++ b/tests/unit_tests/test_stats.py @@ -120,6 +120,11 @@ def test_maxwell(): samples = d.sample(n_samples, seed=100) assert samples.mean() == pytest.approx(exp_mean, rel=1e-02) + # A second sample with a different seed + samples_2 = d.sample(n_samples, seed=200) + assert samples_2.mean() == pytest.approx(exp_mean, rel=1e-02) + assert samples_2.mean() != samples.mean() + def test_watt():