README.md

Algorithm Options

String Calculator

Logic: http://osherove.com/tdd-kata-1/

Bowling Game

Rules: http://slocums.homestead.com/gamescore.html

Roman Numbers

Rules: http://www.novaroma.org/via_romana/numbers.html

Set up

  1. Clone repository from github:
git clone git@github.com:byapparov/tdd.git
  1. Open project in Rstudio

  2. Install testthat and devtools packages in Rstudio:

install.packages(c('testthat', 'devtools'))
# choose yes in all prompts
  1. Run tests
  2. Via Rstudio console: devtools::test()
  3. Via Build -> More -> Test Package (shortcut: ⇧⌘T)

Assertions

Explore functions available in testthat package to check your code:

?expect_equal
?expect_gte
?expect_true
?expect_message


byapparov/tdd documentation built on May 20, 2019, 8:01 p.m.