Skip to content

Commit

Permalink
Clarify a sentence on methods (#988)
Browse files Browse the repository at this point in the history
* Update testing-basics.Rmd

* Update testing-basics.Rmd

* Update testing-basics.Rmd

Co-authored-by: Jennifer (Jenny) Bryan <[email protected]>

---------

Co-authored-by: Jennifer (Jenny) Bryan <[email protected]>
  • Loading branch information
howardbaik and jennybc authored Jun 7, 2023
1 parent 4a98111 commit b30b63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing-basics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This chapter describes how to test your R package using the testthat package: <h

If you're familiar with frameworks for unit testing in other languages, you should note that there are some fundamental differences with testthat.
This is because R is, at heart, more a functional programming language than an object-oriented programming language.
For instance, because R's main object-oriented systems (S3 and S4) are based on generic functions (i.e., methods belong to functions not classes), testing approaches built around objects and methods don't make much sense.
For instance, because R's main object-oriented systems (S3 and S4) are based on generic functions (i.e., a method implements a generic function for a specific class), testing approaches built around objects and methods don't make much sense.

testthat 3.0.0 (released 2020-10-31) introduced the idea of an **edition** of testthat, specifically the third edition of testthat, which we refer to as testthat 3e.
An edition is a bundle of behaviors that you have to explicitly choose to use, allowing us to make otherwise backward incompatible changes.
Expand Down

0 comments on commit b30b63e

Please sign in to comment.