tests/testthat/testAdd.R

context("Add Test")
# library(stringr)

test_that("result of adding is the sum", {
  expect_equal(gpAdd(1,2), 3)
  expect_equal(gpAdd(110,2), 112)
  expect_equal(gpAdd(110,20), 130)

})
lolor/gpRechner documentation built on May 4, 2019, 1:22 p.m.