From aba235e0b46a33cd6dbbb388d52a27f56e149cba Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 10 Jun 2022 08:50:52 -0500 Subject: [PATCH] Update tests/unit_tests/test_stats.py Co-authored-by: Jonathan Shimwell --- tests/unit_tests/test_stats.py | 5 +++++ 1 file changed, 5 insertions(+) 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():