You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: Add a quick summary of the prefixes to the docs #261
I think it would be helpful to have a quick at-a-glance reference for what the different prefixes mean, perhaps as a subsection of function overview?
Here's what I'd suggest - just slightly re-wording/restructuring what's already there to make it more succinct, separate it from the camelcase vs snakecase stuff and emphasize the important differences.
Checkmate Function Prefixes Summary
assert*
If prefixed with assert, an error is thrown if the corresponding check fails.
Otherwise, the checked object is returned invisibly.
test*
The test family always return the check result as logical value.
check*
Functions starting with check return the error message as a string (or TRUE otherwise) and can be used if you need more control and, e.g., want to grep on the returned error message.
expect*
The expect family is intended to be used with the {testthat} package.
All performed checks are logged into the testthat reporter.
Activity