Skip to content

Commit

Permalink
Change the test exclusion condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed Jun 15, 2023
1 parent f1399b7 commit 339d388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-population.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ test_that("parent cannot be scheduled for removal before a daughter splits (forw

# successful model definition in slendr is one thing, but let's make sure the
# simulation themselves really run
skip_if(!is_slendr_env_present())
expect_s3_class(msprime(model, sequence_length = 1, recombination_rate = 0), "slendr_ts")
skip_if(Sys.which("slim") == "")
expect_s3_class(slim(model, sequence_length = 1, recombination_rate = 0), "slendr_ts")
})

Expand All @@ -57,8 +57,8 @@ test_that("parent cannot be scheduled for removal before a daughter splits (back

# successful model definition in slendr is one thing, but let's make sure the
# simulation themselves really run
skip_if(!is_slendr_env_present())
expect_s3_class(msprime(model, sequence_length = 1, recombination_rate = 0), "slendr_ts")
skip_if(Sys.which("slim") == "")
expect_s3_class(slim(model, sequence_length = 1, recombination_rate = 0), "slendr_ts")
})

Expand Down

0 comments on commit 339d388

Please sign in to comment.