Closed malcolmbarrett closed 3 years ago
Could you add some comments to your code? In particular, I think every function (including helper functions) should have a brief explanation of what it does and what its arguments are.
Sure, I added some roxygen comments to the helper functions
Perhaps we should also add a note for developers about how to use snapshot testing in the future.
@Ilia-Kosenkov Yeah, maybe a good thing to add to #95 (generally adding a testing section that mentions the functions implemented here + strategy)
@malcolmbarrett Is this ready to merge?
Yes, unless there is anything else, it's ready on my end!
Thanks!
This PR refactors the tests in several ways:
usethis.quiet
introduced in #94 to quiet all tests prior to running (I bumped into noisy tests running them in certain ways) and reset options during teardownlocal_package()
. This is a self-cleaning test fixture.use_extendr()
I thought about more generally improving test coverage, but this seems reasonable for now and will let me finish #62 a bit more easily
Closes #98