Skip to content

Commit

Permalink
test file edits for deprecation warnings from igraph 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bburns632 committed Apr 4, 2024
1 parent 2c946b8 commit 9b1eb3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-DependencyReporter-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ test_that('DependencyReporter works end-to-end for typical use', {
expect_true({"DirectedGraph" %in% class(testObj$pkg_graph)})
expect_true({igraph::is_igraph(testObj$pkg_graph$igraph)})
expect_setequal(
object = igraph::get.vertex.attribute(testObj$pkg_graph$igraph)[['name']]
object = igraph::vertex_attr(testObj$pkg_graph$igraph)[['name']]
, expected = testObj$nodes[, node]
)
expect_setequal(
object = igraph::get.edgelist(testObj$pkg_graph$igraph)[,1]
, expected = testObj$edges[, SOURCE]
)
expect_setequal(
object = igraph::get.edgelist(testObj$pkg_graph$igraph)[,2]
object = igraph::as_edgelist(testObj$pkg_graph$igraph)[,2]
, expected = testObj$edges[, TARGET]
)

Expand Down

0 comments on commit 9b1eb3e

Please sign in to comment.