Skip to content

Commit 860a156

Browse files
committed
fix tests
1 parent 6759d34 commit 860a156

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testthat/test_codebook.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test_that("codebook generation", {
1313
on.exit(setwd(wd))
1414
expect_silent(md <- codebook(bfi))
1515
figs <- list.files(paste0(dir, "/figure"))
16-
expect_equal(length(figs), 8)
16+
expect_equal(length(figs), 7)
1717
expect_match(md, "Scale: BFIK_neuro")
1818
expect_match(md, "Scale: BFIK_consc")
1919
expect_match(md, "Missings per variable")
@@ -68,7 +68,7 @@ test_that("Codebook with retest reliabilities can be computed", {
6868
on.exit(setwd(wd))
6969
expect_silent(md <- codebook(bfi2))
7070
figs <- list.files(paste0(dir, "/figure"))
71-
expect_equal(length(figs), 6)
71+
expect_equal(length(figs), 5)
7272
expect_match(md, "Scale: BFIK_neuro")
7373
expect_match(md, "Missings per variable")
7474
expect_match(md, "56 completed rows")
@@ -107,7 +107,7 @@ test_that("Codebook with multilevel reliability", {
107107
on.exit(setwd(wd))
108108
expect_warning(md <- codebook(bfi3))
109109
figs <- list.files(paste0(dir, "/figure"))
110-
expect_equal(length(figs), 7)
110+
expect_equal(length(figs), 6)
111111
expect_match(md, "Scale: BFIK_neuro")
112112
expect_match(md, "Missings per variable")
113113
expect_match(md, "168 completed rows")

0 commit comments

Comments
 (0)