We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6899694 commit dd9f2b5Copy full SHA for dd9f2b5
1 file changed
tests/testthat/test-read_graph.R
@@ -8,15 +8,15 @@ test_that("reading GraphML file works", {
8
})
9
10
test_that("reading graph in ncol format", {
11
- library(igraph)
+ ncol_path <- tempfile("zoo", fileext = ".ncol")
12
g <- make_graph(c(1, 2, 2, 3))
13
write_graph(g, "zoo.ncol", "ncol")
14
- expect_no_error(g2 <- read_graph("zoo.ncol", "ncol"))
+ expect_no_error(g2 <- read_graph(ncol_path, "ncol"))
15
16
17
test_that("reading graph in lgl format", {
18
19
20
write_graph(g, "zoo.lgl", "lgl")
21
- expect_no_error(g2 <- read_graph("zoo.lgl", "lgl"))
+ expect_no_error(g2 <- read_graph(ncol_path, "lgl"))
22
0 commit comments