tests/testthat/test.single.obj.functions.R

library(optim.functions)
context("single objective functions")

test_that("The minimum of the ackley function is 0 at x=0", {
  expect_equal(ackley(c(0,0,0,0)), 0)
})

Try the optim.functions package in your browser

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

optim.functions documentation built on May 2, 2019, 9:57 a.m.