Closed Jaeoc closed 5 years ago
I moved any code that executes the function from the function definition files to test_that files, to stop the package from crashing upon build when it's trying to call itself ;) I have not actually built tests around this code, but you could do so if you want! See my package tidyLPA for how to do this: https://github.com/data-edu/tidyLPA/tree/master/tests/testthat
Hi Joris,
You asked me to send you some examples for these classes so that you could add them to the test files, I figured it was quicker to just add test files for them straight away.
I looked at the structure for your other test-files and basically copied that, although it's not clear to me that your tests are testing anything since they don't contain any
test_that()
statements?