Skip to content

Commit ee38bfa

Browse files
committed
Fix typos.
1 parent 387580b commit ee38bfa

16 files changed

+26
-26
lines changed

β€ŽNEWS.mdβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* New `vignette("challenging-functions")` provides an index to other documentation organised by testing challenges (#1265).
55
* When running a test interactively, testthat now reports the number of succeses. The results should also be more useful if you are using nested tests.
66
* The hints generated by `expect_snapshot()` and `expect_snapshot_file()` now include the path to the package, if its not in the current working directory (#1577).
7-
* `expect_snapshot_file()` now clearly errors if the `path` doesnt exist (#2191).
7+
* `expect_snapshot_file()` now clearly errors if the `path` doesn't exist (#2191).
88
* `expect_snapshot_file()` now considers `.json` to be a text file (#1593).
99
* `expect_snapshot_file()` now shows differences for text files (#1593).
1010
* The failure messages for all `expect_` functions have been rewritten to first state what was expected and then what was actually received (#2142).
@@ -19,7 +19,7 @@
1919
* `local_mock()` and `with_mock()` have been deprecated because they are no longer permitted in R 4.5.
2020
* `snapshot_review()` now passes `...` on to `shiny::runApp()` (#1928).
2121
* `expect_named()` now gives more informative errors (#2091).
22-
* `expect_*()` functions consistently and rigorously check their inputs (#1754).
22+
* `expect_*()` functions consistently and rigorously check their inputs (#1754).
2323
* `test_that()` no longer warns about the absence of `{}` since it no longer seems to be necessary.
2424
* `test_that()`, `describe()`, and `it()` can now be arbitrarily nested. Each component will skip only if it and its subtests don't contain any expectations. The interactive stop reporter has been fixed so it doesn't duplicate failures. (#2063, #2188).
2525
* Test filtering now works with `it()`, and the `desc` argument can take a character vector in order to recursively filter subtests (i.e. `it()` nested inside of `describe()`) (#2118).
@@ -38,7 +38,7 @@
3838
* New `expect_r6_class()` (#2030).
3939
* `expect_*()` functions consistently and rigorously check their inputs (#1754).
4040
* `JunitReporter()` no longer fails with `"no applicable method for xml_add_child"` for warnings outside of tests (#1913). Additionally, warnings now save their backtraces.
41-
* `JunitReporter()` strips ANSI escapes in more placese (#1852, #2032).
41+
* `JunitReporter()` strips ANSI escapes in more places (#1852, #2032).
4242
* `try_again()` is now publicised. The first argument is now the number of retries, not tries (#2050).
4343
* `vignette("custom-expectations)` has been overhauled to make it much clearer how to create high-quality expectations (#2113, #2132, #2072).
4444
* `expect_snapshot()` and friends will now fail when creating a new snapshot on CI. This is usually a signal that you've forgotten to run it locally before committing (#1461).
@@ -987,7 +987,7 @@ This release mostly focusses on an overhaul of how testthat works with condition
987987
* In `expect_equal_to_reference()`, the default value for `update` is
988988
now `FALSE` (@BrodieG, #683).
989989

990-
* `expect_error()` now returns the error object as documentated (#724).
990+
* `expect_error()` now returns the error object as documented (#724).
991991
It also now warns if you're using a classed expectation and you're
992992
not using the `class` argument. This is good practice as it decouples the
993993
error object (which tends to be stable) from its rendering to the user
@@ -1679,7 +1679,7 @@ The reporters system class has been considerably refactored to make existing rep
16791679
* `safe_digest()` uses a better strategy, and returns NA for directories
16801680
(#138, #146).
16811681

1682-
* Random praise is renabled by default (again!) (#164).
1682+
* Random praise is re-enabled by default (again!) (#164).
16831683

16841684
* Teamcity reporter now correctly escapes output messages (#150, @windelinckx).
16851685
It also uses nested suites to include test names.

β€ŽR/expect-self-test.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ capture_success_failure <- function(expr) {
3939
#' Use `show_failure()` in examples to print the failure message without
4040
#' throwing an error.
4141
#'
42-
#' @param expr Code to evalute
42+
#' @param expr Code to evaluate
4343
#' @param message Check that the failure message matches this regexp.
4444
#' @param ... Other arguments passed on to [expect_match()].
4545
#' @export

β€ŽR/expect-that.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#' @param srcref Location of the failure. Should only needed to be explicitly
1616
#' supplied when you need to forward a srcref captured elsewhere.
1717
#' @param trace_env If `trace` is not specified, this is used to generate an
18-
#' informative traceack for failures. You should only need to set this if
18+
#' informative traceback for failures. You should only need to set this if
1919
#' you're calling `fail()` from a helper function; see
2020
#' `vignette("custom-expectation")` for details.
2121
#' @param trace An optional backtrace created by [rlang::trace_back()].

β€ŽR/mock2.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
#'
101101
#' To mock a function that returns different values in sequence,
102102
#' for instance an API call whose status would be 502 then 200,
103-
#' or an user intput to `readline()`, you can use [mock_output_sequence()]
103+
#' or an user input to `readline()`, you can use [mock_output_sequence()]
104104
#'
105105
#' ```R
106106
#' local_mocked_bindings(readline = mock_output_sequence("3", "This is a note", "n"))

β€ŽR/reporter-stop.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#'
33
#' @description
44
#' The default reporter used when [expect_that()] is run interactively.
5-
#' It responds by displaying a summary of the number of successes and faiures
5+
#' It responds by displaying a summary of the number of successes and failures
66
#' and [stop()]ping on if there are any failures.
77
#'
88
#' @export

β€ŽR/test-compiled-code.Rβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ run_cpp_tests <- function(package) {
230230
#' \strong{Function} \tab \strong{Catch} \tab \strong{Description} \cr
231231
#' `context` \tab `CATCH_TEST_CASE` \tab The context of a set of tests. \cr
232232
#' `test_that` \tab `CATCH_SECTION` \tab A test section. \cr
233-
#' `expect_true` \tab `CATCH_CHECK` \tab Test that an expression evaluates to `true`. \cr
234-
#' `expect_false` \tab `CATCH_CHECK_FALSE` \tab Test that an expression evalutes to `false`. \cr
233+
#' `expect_true` \tab `CATCH_CHECK` \tab Test that an expression evaluates to `TRUE`. \cr
234+
#' `expect_false` \tab `CATCH_CHECK_FALSE` \tab Test that an expression evaluates to `FALSE`. \cr
235235
#' `expect_error` \tab `CATCH_CHECK_THROWS` \tab Test that evaluation of an expression throws an exception. \cr
236236
#' `expect_error_as` \tab `CATCH_CHECK_THROWS_AS` \tab Test that evaluation of an expression throws an exception of a specific class. \cr
237237
#' }

β€ŽR/watcher.Rβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
#'
1010
#' @param path character vector of paths to watch. Omit trailing backslash.
1111
#' @param pattern file pattern passed to [dir()]
12-
#' @param callback function called everytime a change occurs. It should
12+
#' @param callback function called every time a change occurs. It should
1313
#' have three parameters: added, deleted, modified, and should return
14-
#' TRUE to keep watching, or FALSE to stop.
14+
#' `TRUE` to keep watching, or `FALSE` to stop.
1515
#' @param hash hashes are more accurate at detecting changes, but are slower
16-
#' for large files. When FALSE, uses modification time stamps
16+
#' for large files. When `FALSE`, uses modification time stamps
1717
#' @export
1818
#' @keywords internal
1919
watch <- function(path, callback, pattern = NULL, hash = TRUE) {

β€Žman/StopReporter.Rdβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žman/expect.Rdβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žman/expect_success.Rdβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)