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.
2 parents c2da965 + e5ac2fb commit 63b1bfcCopy full SHA for 63b1bfc
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