Skip to content

Commit 82fa14a

Browse files
committed
Clarify types in class expectations
Fixes #1989
1 parent c52c7df commit 82fa14a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

R/expect-inheritance.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
#'
2222
#' @param type String giving base type (as returned by [typeof()]).
2323
#' @param class
24-
#' * `expect_type()`: a single string giving an R base type.
24+
#' * `expect_type()`: a string.
2525
#' * `expect_s3_class()`: a character vector of class names or `NA` to assert
2626
#' that `object` isn't an S3 object. If you provide multiple class names,
2727
#' the test will pass if `object` inherits from any of them, unless
2828
#' `exact = TRUE`.
29-
#' * `expect_s4_class()`: a character vector of class names or `NA` to assert
30-
#' that `object` isn't an S4 object.
29+
#' * `expect_s4_class()`: a string or `NA` to assert that `object` isn't an
30+
#' S4 object.
3131
#' * `expect_r6_class()`: a string.
3232
#' * `expect_s7_class()`: an [S7::S7_class()] object.
3333
#' @inheritParams expect_that

man/inheritance-expectations.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)