Skip to content

Commit 5612df0

Browse files
committed
satisfy the linter
1 parent 2ce5daa commit 5612df0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tests/testthat/test-key_colnames.R

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,17 @@ test_that("`key_colnames` on `epi_df`s and similar tibbles works as expected", {
8585

8686
# We can exclude keys:
8787
expect_equal(
88-
key_colnames(gat_tbl, geo_keys = "geo_value", other_keys = "age_group", time_keys = "time_value", exclude = c("time_value")),
88+
key_colnames(
89+
gat_tbl, geo_keys = "geo_value", other_keys = "age_group",
90+
time_keys = "time_value", exclude = c("time_value")
91+
),
8992
c("geo_value", "age_group")
9093
)
9194
expect_equal(
92-
key_colnames(gat_tbl, geo_keys = "geo_value", other_keys = "age_group", time_keys = "time_value", exclude = c("geo_value", "time_value")),
95+
key_colnames(
96+
gat_tbl, geo_keys = "geo_value", other_keys = "age_group",
97+
time_keys = "time_value", exclude = c("geo_value", "time_value")
98+
),
9399
c("age_group")
94100
)
95101
expect_equal(
@@ -103,7 +109,10 @@ test_that("`key_colnames` on `epi_df`s and similar tibbles works as expected", {
103109

104110
# Using `extra_keys =` is soft-deprecated and routes to `other_keys =`:
105111
expect_warning(
106-
gat_tbl_extra_keys_res <- key_colnames(gat_tbl, geo_keys = "geo_value", time_keys = "time_value", extra_keys = "age_group"),
112+
gat_tbl_extra_keys_res <- key_colnames(
113+
gat_tbl, geo_keys = "geo_value",
114+
time_keys = "time_value", extra_keys = "age_group"
115+
),
107116
class = "lifecycle_warning_deprecated"
108117
)
109118
expect_equal(gat_tbl_extra_keys_res, c("geo_value", "age_group", "time_value"))

0 commit comments

Comments
 (0)