Update tests/unit_tests/test_stats.py

Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
This commit is contained in:
Patrick Shriwise 2022-06-10 08:50:52 -05:00 committed by GitHub
parent e1fd9959bc
commit aba235e0b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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():