tests/testthat/test-edge_indices.R

test_that("returns accurate indices for matrix input", {
  x <- diag(4)
  expect_equal(edge_indices(x), c(1, 6, 11, 16))
})
crcox/latticize documentation built on Dec. 19, 2021, 6:19 p.m.