tests/testthat/testHc.R

context("Hill Climbing")

test_that("Name is set", {
  expect_equal(attr(hillClimbing(),'name'),"Hill Climbing");
  expect_equal(attr(hillClimbing(),'shortName'),"hc");
})

Try the FSinR package in your browser

Any scripts or data that you put into this service are public.

FSinR documentation built on Nov. 23, 2020, 5:10 p.m.