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 5de2495
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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
6 changes: 3 additions & 3 deletions tests/testthat/test-FunctionReporter-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ 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(
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
6 changes: 3 additions & 3 deletions tests/testthat/test-InheritanceReporter-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ test_that('InheritanceReporter Methods Work', {
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

0 comments on commit 5de2495

Please sign in to comment.