Logic: http://osherove.com/tdd-kata-1/
Rules: http://slocums.homestead.com/gamescore.html
Rules: http://www.novaroma.org/via_romana/numbers.html
git clone git@github.com:byapparov/tdd.git
Open project in Rstudio
Install testthat and devtools packages in Rstudio:
install.packages(c('testthat', 'devtools'))
# choose yes in all prompts
devtools::test()
⇧⌘T
)Explore functions available in testthat
package to check your code:
?expect_equal
?expect_gte
?expect_true
?expect_message
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.