Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 8b7f20a

Browse files
authored
Merge pull request #17 from hadley/dev-testthat
Switch order of equality & condition expectations
2 parents 97439fa + 9f5f697 commit 8b7f20a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/testthat/test-paramset.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,18 @@ test_that("ParamSet actives - values", {
110110
p$values$a <- 1
111111
pri <- get_private(p)
112112

113-
expect_false(expect_warning(
113+
expect_warning(expect_false(
114114
.check(p, pri, supports = TRUE, deps = FALSE, tags = FALSE,
115115
error_on_fail = FALSE, value_check = list(a = 3),
116116
support_check = get_private(p)$.isupports)))
117117

118118
p$add_dep("b", "a", cnd("eq", 1))
119-
expect_false(expect_warning(
119+
expect_warning(expect_false(
120120
.check(p, pri, supports = FALSE, deps = TRUE, tags = FALSE,
121121
error_on_fail = FALSE, value_check = list(b = 1, a = 3),
122122
dep_check = p$deps)))
123123

124-
expect_false(expect_warning(
124+
expect_warning(expect_false(
125125
.check(p, pri, supports = FALSE, deps = FALSE, tags = TRUE,
126126
id = c("b", "d"),
127127
error_on_fail = FALSE, value_check = list(b = 1, d = 1),
@@ -859,4 +859,4 @@ test_that("unprefix(prefix(ps)) is ps", {
859859
get_private(p)$.prefix("pre")
860860
get_private(p)$.unprefix()
861861
expect_equal_ps(p, p2)
862-
})
862+
})

0 commit comments

Comments
 (0)