/usr/lib/R/site-library/igraph/tests/test_bug-1019624.R is in r-cran-igraph 0.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | context("Bug 1019624")
test_that("weighted graph.adjacency works on integer matrices", {
library(igraph)
data <- matrix(c(0,0,0,2, 0,0,0,0, 0,0,0,2, 0,1,0,0), 4)
g <- graph.adjacency(data, weighted=TRUE)
expect_that(as.matrix(g[]), is_equivalent_to(data))
})
|