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 6297f27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 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]
object = igraph::as_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
2 changes: 1 addition & 1 deletion tests/testthat/test-FunctionReporter-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test_that('FunctionReporter 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(
Expand Down

0 comments on commit 6297f27

Please sign in to comment.