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 e3c5c8c commit b149397Copy full SHA for b149397
tests/testthat/test-type.R
@@ -190,6 +190,13 @@ test_that("the type of a classed data frame with an unspecified column retains u
190
expect_identical(vec_ptype(df2), expect)
191
})
192
193
+test_that("vec_ptype() methods can be written", {
194
+ local_methods(
195
+ vec_ptype.vctrs_foobar = function(x, ...) "dispatch"
196
+ )
197
+ expect_identical(vec_ptype(foobar()), "dispatch")
198
+})
199
+
200
test_that("vec_ptype_finalise() works with NULL", {
201
expect_identical(vec_ptype_finalise(NULL), NULL)
202
0 commit comments