We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2da965 commit e5ac2fbCopy full SHA for e5ac2fb
tests/testthat/test-grab_names.R
@@ -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