This looks fine to me, there isn’t a lot of actual repetition (unless I am missing something). The only thing you are repeating is for σ in samples(N)
.
While reusing code is generally advisable, I usually strive to keep tests simple and readable.
This looks fine to me, there isn’t a lot of actual repetition (unless I am missing something). The only thing you are repeating is for σ in samples(N)
.
While reusing code is generally advisable, I usually strive to keep tests simple and readable.