-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for mice plotting functions
- Loading branch information
1 parent
e494cdc
commit 56f7dc9
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
test_that("set of old friends functions generate plot", { | ||
imp <- mice::mice(mice::nhanes, printFlag = FALSE) | ||
expect_s3_class(bwplot(imp), "trellis") | ||
expect_s3_class(densityplot(imp), "trellis") | ||
expect_s3_class(stripplot(imp), "trellis") | ||
expect_s3_class(xyplot(imp, bmi~age), "trellis") | ||
}) | ||
|
||
test_that("set of old friends functions generate message", { | ||
imp <- mice::mice(mice::nhanes, printFlag = FALSE) | ||
expect_message(bwplot(imp)) | ||
expect_message(densityplot(imp)) | ||
expect_message(stripplot(imp)) | ||
expect_message(xyplot(imp, bmi~age)) | ||
}) |
File renamed without changes.