tests/testthat/test-add_two.R

test_that("multiplication works", {
  expect_equal(2 * 2, 4)
})

test_that("Adding two integers work", {
    expect_equal(add_two(1, 2), 3)
})

test_that("Adding two floats work", {
    expect_equal(add_two(1.0, 2.0), 3)
})
durandsinclair/mySecondPackage documentation built on Oct. 10, 2020, 12:43 a.m.