We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a540b56 commit 160c530Copy full SHA for 160c530
tests/testthat/test-correlation.R
@@ -1,7 +1,11 @@
1
library(tibble)
2
3
-test_that("epi_cor throws errors as needed",{
+test_that("epi_cor throws an error for a non-epi df for its first argument",{
4
+ expect_error(epi_cor(1:10,1,1))
5
expect_error(epi_cor(data.frame(x=1:10),1,1))
6
+})
7
+
8
+test_that("epi_cor requires two var arguments, var1 and var2",{
9
expect_error(epi_cor(archive_cases_dv_subset$DT,var2=1))
10
expect_error(epi_cor(archive_cases_dv_subset$DT,var1=1))
11
})
0 commit comments