Skip to content

Commit

Permalink
add hedgehog skips
Browse files Browse the repository at this point in the history
  • Loading branch information
lschneiderbauer committed Jan 7, 2024
1 parent cd4708f commit dc4505d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-clarke_wright.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ test_that("runs without error", {
})

test_that("Sum of loads over all runs equals sum of demands", {
skip_if_not_installed("hedgehog")

hedgehog::forall(
gen.demand_net(max_sites = 10L),
function(demand_net) {
Expand Down Expand Up @@ -53,6 +55,8 @@ test_that("Distances add up correctly.", {

test_that("Limited vehicles with more priority should always be exhausted
provided there is enough demand", {
skip_if_not_installed("hedgehog")

hedgehog::forall(
gen.demand_net(max_sites = 10L),
function(demand_net) {
Expand All @@ -77,6 +81,8 @@ test_that("Limited vehicles with more priority should always be exhausted
})

test_that("A vehicle with infinite capacity covers everything in a single run", {
skip_if_not_installed("hedgehog")

hedgehog::forall(
gen.demand_net(max_sites = 10L),
function(demand_net) {
Expand Down Expand Up @@ -116,6 +122,8 @@ test_that("A demand that exceeds vehicle capacities generates more than a single


test_that("Vehicles are not assigned to restricted sites", {
skip_if_not_installed("hedgehog")

hedgehog::forall(
gen.demand_net(max_sites = 10L),
function(demand_net) {
Expand Down

0 comments on commit dc4505d

Please sign in to comment.