mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
test: test for alias gm added.
This commit is contained in:
parent
91ec0bff41
commit
1297415710
1 changed files with 12 additions and 0 deletions
|
@ -1015,3 +1015,15 @@ def test_hash():
|
|||
assert hash(i_obs) != hash((1 + 1e-7) * i_obs)
|
||||
assert hash(obs) != hash(o1)
|
||||
assert hash(o1) != hash(o2)
|
||||
|
||||
def test_gm_alias():
|
||||
samples = np.random.rand(500)
|
||||
|
||||
tt1 = pe.Obs([samples], ["ens"])
|
||||
tt1.gamma_method()
|
||||
|
||||
tt2 = pe.Obs([samples], ["ens"])
|
||||
tt2.gm()
|
||||
|
||||
assert np.isclose(tt1.dvalue, tt2.dvalue)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue