tests/testthat/test-as.R

test_that("number of rollcall votes correct", {
  expect_equal(as.rollcall(examplevotes)$m == nrow(examplevotes$metaList), TRUE)
})

test_that("can create rollcall object", {
  expect_equal(class(as.rollcall(examplevotes)), "rollcall")
})
louwerse/dutchparl documentation built on Aug. 14, 2021, 3:02 a.m.