-
Notifications
You must be signed in to change notification settings - Fork 4
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
215 add unit test for visualisation functionalities #223
215 add unit test for visualisation functionalities #223
Conversation
model_type = "age" | ||
) | ||
|
||
plot <- plot_rhats( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realized that there is not a export tag for this function. I oppened issue #226 to address this before merging this test to dev.
@ntorresd Just pushed the latest changes based on your comments. A few of them I didn't implement, since it may make the test code unnecessarily complex. |
… compared with `expect_equal`. Added test for `plot_serosurvey` with bins
…are them against expected data
…, and `plot_rhats` Moved call to `fit_seromodel` into each test, so it can be skipped with `skip_on_cran`
Co-authored-by: Nicolás Torres Domínguez <45337127+ntorresd@users.noreply.github.com>
Co-authored-by: Nicolás Torres Domínguez <45337127+ntorresd@users.noreply.github.com>
Co-authored-by: Nicolás Torres Domínguez <45337127+ntorresd@users.noreply.github.com>
Co-authored-by: Nicolás Torres Domínguez <45337127+ntorresd@users.noreply.github.com>
Co-authored-by: Nicolás Torres Domínguez <45337127+ntorresd@users.noreply.github.com>
Co-authored-by: Nicolás Torres Domínguez <45337127+ntorresd@users.noreply.github.com>
Co-authored-by: Nicolás Torres Domínguez <45337127+ntorresd@users.noreply.github.com>
… (dev) and fix minor incompatibility Add `model_type` to `get_foi_index() call`
3da35a8
to
6004729
Compare
This PR closes #215 |
Created automated tests for plotting functions.
To facilitate testing I created the following helper functions:
extract_plot_data
to retrieve relevant data of a plot into a listcompare_lists_with_tolerance
andexpect_lists_equal_with_tolerance
to assure tests will pass on different platforms regardless of float numbers management