R/test_square.R

context("equal_test")     # there can be multiple types of tests. In case of multiple test this enables you to know where it goes right/wrong.
test_that("area_of_square",
          {
            expect_equal(areasquare(3,4),12)
          })

# vul in console devtools::test()
LottedeVos/myfirstpackage documentation built on May 3, 2019, 9:05 p.m.