Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion pkg/R/tinytest.R
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down