Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcoding tests for printing of random data is brittle #7

Closed
KristofferC opened this issue Apr 22, 2024 · 1 comment
Closed

Hardcoding tests for printing of random data is brittle #7

KristofferC opened this issue Apr 22, 2024 · 1 comment

Comments

@KristofferC
Copy link

Tests fail on 1.11 due to:

rng = MersenneTwister(123)
d = georef((z=rand(rng, 100, 100),))
γ = EmpiricalVariogram(d, :z)
@test sprint(show, γ) ==
"EmpiricalVariogram(abscissa: [0.353553, ..., 13.8426], ordinate: [0.0, ..., 0.0828886], distance: Euclidean(0.0), estimator: MatheronEstimator(), npairs: 2790126)"
@test sprint(show, MIME"text/plain"(), γ) == """
EmpiricalVariogram
├─ abscissa: [0.353553, 1.20607, 2.0, ..., 12.2868, 13.1058, 13.8426]
├─ ordinate: [0.0, 0.0830612, 0.0825728, ..., 0.083112, 0.0828741, 0.0828886]
├─ distance: Euclidean(0.0)
├─ estimator: MatheronEstimator()
└─ npairs: 2790126"""

which tests how some random data is printed.

@juliohm
Copy link
Member

juliohm commented Apr 22, 2024

Thank you, will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants