Skip to content

Commit e5ac2fb

Browse files
committed
New test added
1 parent c2da965 commit e5ac2fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/testthat/test-grab_names.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
print("a")
2+
3+
df <- data.frame(b=1,c=2,ca=3,cat=4)
4+
5+
test_that("Names are grabbed properly", {
6+
expect_identical(grab_names(df,dplyr::starts_with("ca")),
7+
subset(names(df),startsWith(names(df), "ca"))
8+
)
9+
})

0 commit comments

Comments
 (0)