Skip to content

Commit

Permalink
Fix spelling mistakes in documentation, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
lentinj committed Dec 14, 2014
1 parent fab1837 commit 0a00270
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
Unreleased

* Fix spelling mistakes in documentation, changelog

2014-12-13 Jamie Lentin <[email protected]>

Version 1.1-0

* R/ok_group.R (ok_group): New function to display a debug message before evaluating a code block contatining unit tests.
* R/ok_group.R (ok_group): New function to display a debug message before evaluating a code block containing unit tests.
* R/ok.R (ok): Long descriptions no longer breaks output.
* R/non_interactive_summary.R (non_interactive_exit): Now notices when tests end prematurely and puts out debug message.
* man/unittest-package.Rd: Fixed incorrect instructions for integration with R CMD check.
Expand Down
6 changes: 3 additions & 3 deletions man/ok_group.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

\title{Group associated unit tests}

\description{Group associated unit tests with TAP compliant comments seperating the output.}
\description{Group associated unit tests with TAP compliant comments separating the output.}

\usage{
ok_group( message, tests )
Expand Down Expand Up @@ -47,12 +47,12 @@

# Multiline group message
ok_group(c("Test multiplication", "but not division"),{
ok( 1 * 1 == 1, "Can multiple by 1" )
ok( 1 * 1 == 1, "Can multiply by 1" )
ok( 2 * 3 == 6, "Can multiply by 3" )
})
# # Test multiplication
# # but not division
# ok - Can multiple by 1
# ok - Can multiply by 1
# ok - Can multiply by 3
}
}
8 changes: 4 additions & 4 deletions man/unittest-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
\preformatted{
biggest <- function(x,y) { max(c(x,y)) }
}
To test this create a file called \code{test_myfunction.R} in the same directory cointaining
To test this create a file called \code{test_myfunction.R} in the same directory containing
\preformatted{
library(unittest, quietly = TRUE)
Expand Down Expand Up @@ -189,9 +189,9 @@
}
}
\subsection{Testing unexported package functions}{
If you have some tests which require access to unexported functions,
or unexported S3 methods, you can use \code{local}.
\subsection{Testing un-exported package functions}{
If you have some tests which require access to un-exported functions,
or un-exported S3 methods, you can use \code{local}.
\preformatted{
local({
ok(internal_function() == 3)
Expand Down

0 comments on commit 0a00270

Please sign in to comment.