Skip to content

Commit

Permalink
test: use specific skip() function (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviator-app[bot] authored Jan 22, 2024
2 parents 8e1f4d5 + 4367530 commit a3d05cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-graphNEL.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that("graphNEL conversion works", {
if (!requireNamespace("graph", quietly = TRUE)) skip("No graph package")
skip_if_not_installed("graph")

suppressPackageStartupMessages(library(graph, warn.conflicts = FALSE))

Expand Down Expand Up @@ -29,7 +29,7 @@ test_that("graphNEL conversion works", {
})

test_that("graphNEL does not duplicate loop edges", {
if (!requireNamespace("graph", quietly = TRUE)) skip("No graph package")
skip_if_not_installed("graph")

mat <- matrix(c(1, 0.5, 0.5, 0), nrow = 2)
dimnames(mat) <- list(c("A", "B"), c("A", "B"))
Expand Down

0 comments on commit a3d05cc

Please sign in to comment.