diff --git a/pkg/NEWS b/pkg/NEWS index 529287a..3f7caab 100644 --- a/pkg/NEWS +++ b/pkg/NEWS @@ -18,7 +18,7 @@ version 1.4.1 (Thanks to Joshua Ulrich for the suggestion) - New function 'expect_length' checks length of object (thanks to Marcel Ramos for suggesting). -- New function 'exit_if': conditionally exit a test file, akin to stopifnot. +- New function 'exit_if_not': conditionally exit a test file, akin to stopifnot. (Thanks to Grant McDermott for triggering this). - New function 'expect_match' to test whether string output(s) match a regular expression (Thanks to Aaron Jacobs for the suggestion). diff --git a/pkg/R/tinytest.R b/pkg/R/tinytest.R index 266bfd9..38121f2 100644 --- a/pkg/R/tinytest.R +++ b/pkg/R/tinytest.R @@ -185,7 +185,7 @@ ignore <- function(fun){ #' Stop testing (conditionally) #' #' Use \code{exit_file} to exit a file with a custom message, or use -#' \code{exit_if} to exit if one or more conditions are met. \code{exit_if} +#' \code{exit_if_not} to exit if one or more conditions are not met. \code{exit_if_not} #' will create a message akin to messages created by \code{\link[base]{stopifnot}}. #' #' @param msg \code{[character]} An optional message to print after exiting.