tests/testthat/test.basics.R

test_that("basic ops", {
    g = graph.formula(A-B, A-C, C-B)
    expect_error(infectN(1)(g)) # no state
    V(g)$state = "S"
    expect_error(infectN(1)(g)) # no time
    g$start = 0
    g$time = 0
    g = infectN(1)(g)
}
          )

    
barryrowlingson/sirgraph documentation built on April 8, 2020, 7:19 p.m.