inst/tests/test-write_popgraph.R

context("write_popgraph.R")

test_that("testing", {

  expect_that( write_popgraph(FALSE), throws_error() )

  a <- matrix( 0,nrow=4,ncol=4)
  a[1,2] <- a[1,3] <- a[2,3] <- a[1,4] <-1
  a <- a + t(a)
  graph <- as.popgraph(a)
  
  expect_that( write_popgraph(graph), throws_error() )
}
)

Try the popgraph package in your browser

Any scripts or data that you put into this service are public.

popgraph documentation built on April 14, 2017, 9:58 p.m.