Skip to content

Commit

Permalink
remove unneeded skips
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed May 11, 2024
1 parent a30c800 commit 2c2c176
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Suggests:
nonnest2,
ordinal,
parallel,
parameters (>= 0.21.4),
parameters (>= 0.21.6),
patchwork,
pscl,
psych,
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-cronbachs_alpha.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ test_that("cronbachs_alpha", {
})

test_that("cronbachs_alpha, principal_components", {
skip_if_not_installed("parameters", minimum_version = "0.21.3")
pca <- parameters::principal_components(mtcars[, c("cyl", "gear", "carb", "hp")], n = 2)
expect_equal(cronbachs_alpha(pca, verbose = FALSE), c(PC1 = 0.1101384), tolerance = 1e-3)
expect_message(cronbachs_alpha(pca), regex = "Too few")
Expand All @@ -20,7 +19,6 @@ test_that("cronbachs_alpha, principal_components", {
})

test_that("cronbachs_alpha, principal_components", {
skip_if_not_installed("parameters", minimum_version = "0.20.3")
pca <- parameters::principal_components(mtcars, n = 2)
expect_equal(cronbachs_alpha(pca), c(PC1 = 0.4396, PC2 = -1.44331), tolerance = 1e-3)
})
Expand Down

0 comments on commit 2c2c176

Please sign in to comment.