-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Milestone
Description
Now that base::inherits() can accept any object in the what argument, and S7 encourages using reified class objects instead of class names as character vectors, it might be useful to add an expect_inherits() function. This function would generally behave like expect_s3_class() but could dispatch nameOfClass() on the second argument when needed.
For example, it could replace tests like those seen here: cole-brokamp/fr#15
Possibly related issue: #1448
Metadata
Metadata
Assignees
Labels
No labels