tests/testthat/test-test_evaluate_fitness.R

test_that("evaluate_fitness returns correct fitness values", {
    fitness <- genetic.algo.optimizeR::evaluate_fitness(c(1, 3, 0))
    expect_equal(fitness, c(1, 1, 4))
})

Try the genetic.algo.optimizeR package in your browser

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

genetic.algo.optimizeR documentation built on Oct. 10, 2024, 5:07 p.m.