Skip to content

Commit 65a3800

Browse files
committed
Fix typos
Fixes #1799
1 parent 4d2db09 commit 65a3800

File tree

13 files changed

+25
-25
lines changed

13 files changed

+25
-25
lines changed

β€ŽNEWS.mdβ€Ž

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397
* `CheckReporter` now only records warnings when not on CRAN. Otherwise
398398
failed CRAN revdep checks tend to be cluttered up with warnings (#1300).
399399
It automatically cleans up `testthat-problems.rds` left over from previous
400-
runs if the latest run is succesful (#1314).
400+
runs if the latest run is successful (#1314).
401401

402402
* `expect_s3_class()` and `expect_s4_class()` can now check that an object
403403
_isn't_ an S3 or S4 object by supplying `NA` to the second argument (#1321).
@@ -559,7 +559,7 @@ See `vignette("snapshotting")` for more details.
559559

560560
* Many reporters (e.g. the check reporter) no longer raise an error when any tests fail. Use the `stop_on_failure` argument to `devtools::test()` and `testthat::test_dir()` if your code relies on this. Alternatively, use `reporter = c("check", "fail")` to e.g. create a failing check reporter.
561561

562-
## Fixures
562+
## Fixtures
563563

564564
* New `vignette("test-fixtures")` describes test fixtures; i.e. how to
565565
temporarily and cleanly change global state in order to test parts of
@@ -664,7 +664,7 @@ This release mostly focusses on an overhaul of how testthat works with condition
664664
implements the testthat protocol (signal with `stop()` if the
665665
expectation is broken, with a `continue_test` restart).
666666

667-
* Existence of restarts is first checked before invokation. This makes
667+
* Existence of restarts is first checked before invocation. This makes
668668
it possible to signal warnings or messages with a different
669669
condition signaller (#874).
670670

@@ -835,7 +835,7 @@ This release mostly focusses on an overhaul of how testthat works with condition
835835
* `CheckReporter`, used by R CMD check, now includes a count of warnings.
836836

837837
* `JUnitReporter` no longer replaces `.` in class names (#753), and
838-
creates ouput that should be more compatible with Jenkins (#806, @comicfans).
838+
creates output that should be more compatible with Jenkins (#806, @comicfans).
839839

840840
* `ListReporter` now records number of passed tests and original results in
841841
new columns (#675).
@@ -846,7 +846,7 @@ This release mostly focusses on an overhaul of how testthat works with condition
846846
recommend the use of `context()` and instead encourage you to delete it,
847847
allowing the context to be autogenerated from the file name.
848848

849-
This also eliminates the error that occured if tests can before the
849+
This also eliminates the error that occurred if tests can before the
850850
first `context()` (#700, #705).
851851

852852
* Gains a `update_interval` parameter to control how often updates are
@@ -990,7 +990,7 @@ We have identified a useful family of expectations that compares the results of
990990

991991
* `expect_known_failure()` stored and compares the failure message from
992992
an expectation. It's a useful regression test when developing informative
993-
failure messges for your own expectations.
993+
failure messages for your own expectations.
994994

995995
### Quasiquotation support
996996

@@ -1069,7 +1069,7 @@ A new default reporter, `ReporterProgress`, produces more aesthetically pleasing
10691069
* New `LocationReporter` which just prints the location of every expectation.
10701070
This is useful for locating segfaults and C/C++ breakpoints (#551).
10711071
1072-
* `SummaryReporter` recieved a number of smaller tweaks
1072+
* `SummaryReporter` received a number of smaller tweaks
10731073
10741074
* Aborts testing as soon the limit given by the option
10751075
`testthat.summary.max_reports` (default 10) is reached (#520).
@@ -1227,7 +1227,7 @@ factor("a") %>%
12271227
(And to make this style even easier, testthat now re-exports the pipe, #412).
12281228

12291229
The exception to this rule are the expectations that evaluate (i.e.
1230-
for messages, warnings, errors, output etc), which invisibly return `NULL`. These functions are now more consistent: using `NA` will cause a failure if there is a errors/warnings/mesages/output (i.e. they're not missing), and will `NULL` fail if there aren't any errors/warnings/mesages/output. This previously didn't work for `expect_output()` (#323), and the error messages were confusing with `expect_error(..., NA)` (#342, @nealrichardson + @krlmlr, #317).
1230+
for messages, warnings, errors, output etc), which invisibly return `NULL`. These functions are now more consistent: using `NA` will cause a failure if there is a errors/warnings/messages/output (i.e. they're not missing), and will `NULL` fail if there aren't any errors/warnings/messages/output. This previously didn't work for `expect_output()` (#323), and the error messages were confusing with `expect_error(..., NA)` (#342, @nealrichardson + @krlmlr, #317).
12311231

12321232
Another change is that `expect_output()` now requires you to explicitly print the output if you want to test a print method: `expect_output("a", "a")` will fail, `expect_output(print("a"), "a")` will succeed.
12331233

@@ -1362,7 +1362,7 @@ The reporters system class has been considerably refactored to make existing rep
13621362
output, messages, warnings, and errors should be absent (#219).
13631363

13641364
* Praise gets more diverse thanks to the praise package, and you'll now
1365-
get random encouragment if your tests don't pass.
1365+
get random encouragement if your tests don't pass.
13661366

13671367
* testthat no longer muffles warning messages. If you don't want to see them
13681368
in your output, you need to explicitly quiet them, or use an expectation that
@@ -1398,7 +1398,7 @@ The reporters system class has been considerably refactored to make existing rep
13981398

13991399
# testthat 0.10.0
14001400

1401-
* Failure locations are now formated as R error locations.
1401+
* Failure locations are now formatted as R error locations.
14021402

14031403
* Add an 'invert' argument to `find_tests_scripts()`. This allows one to
14041404
select only tests which do _not_ match a pattern. (#239, @jimhester).
@@ -1458,7 +1458,7 @@ The reporters system class has been considerably refactored to make existing rep
14581458
## New features
14591459

14601460
* BDD: testhat now comes with an initial behaviour driven development (BDD)
1461-
interface. The language is similiar to RSpec for Ruby or Mocha for JavaScript.
1461+
interface. The language is similar to RSpec for Ruby or Mocha for JavaScript.
14621462
BDD tests read like sentences, so they should make it easier to understand
14631463
the specification of a function. See `?describe()` for further information
14641464
and examples.
@@ -1523,7 +1523,7 @@ tests.
15231523

15241524
The other big improvement to usability comes from @kforner, who contributed
15251525
code to allow the default results (i.e. those produced by `SummaryReporter`)
1526-
to include source references so you can see exactly where failures occured.
1526+
to include source references so you can see exactly where failures occurred.
15271527

15281528
## New reporters
15291529

β€ŽR/auto-test.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' Watches code and tests for changes, rerunning tests as appropriate.
22
#'
33
#' The idea behind `auto_test()` is that you just leave it running while
4-
#' you develop your code. Everytime you save a file it will be automatically
4+
#' you develop your code. Every time you save a file it will be automatically
55
#' tested and you can easily see if your changes have caused any test
66
#' failures.
77
#'

β€ŽR/describe.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' describe: a BDD testing language
22
#'
3-
#' A simple BDD DSL for writing tests. The language is similiar to RSpec for
3+
#' A simple BDD DSL for writing tests. The language is similar to RSpec for
44
#' Ruby or Mocha for JavaScript. BDD tests read like sentences and it should
55
#' thus be easier to understand what the specification of a function/component
66
#' is.

β€ŽR/mock.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#' @param .env the environment in which to patch the functions,
2121
#' defaults to the top-level environment. A character is interpreted as
2222
#' package name.
23-
#' @param .local_env Environment in which to add exit hander.
23+
#' @param .local_env Environment in which to add exit handler.
2424
#' For expert use only.
2525
#' @keywords internal
2626
#' @return The result of the last unnamed parameter

β€Žman/auto_test.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/describe.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/with_mock.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.

β€Žtests/testthat/test-colour.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
test_that("can supress colours", {
1+
test_that("can suppress colours", {
22
op <- options(
33
crayon.enabled = TRUE,
44
testthat.use_colours = TRUE,

β€Žtests/testthat/test-expect-comparison.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test_that("comparison must yield a single logical", {
4848
expect_error(expect_lt(1:10, 5), "single logical")
4949
})
5050

51-
test_that("wordly versions are deprecated", {
51+
test_that("wordy versions are deprecated", {
5252
expect_warning(expect_less_than(1, 2), "Deprecated")
5353
expect_warning(expect_more_than(2, 1), "Deprecated")
5454
})

β€Žtests/testthat/test-expect-invisible.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
test_that("basically principles of visibilty hold", {
1+
test_that("basic principles of visibility hold", {
22
expect_success(expect_invisible(x <- 10))
33
expect_failure(expect_invisible(x))
44

0 commit comments

Comments
Β (0)