tests/testthat/test_get_deputies_table.R

test_that("result of function", {
  expect_equal(class(get_deputies_table(host = "services.mini.pw.edu.pl")), "data.frame")
})

test_that("columns of table", {
  expect_equal(ncol(get_deputies_table(host = "services.mini.pw.edu.pl")), 3)
})


test_that("rows of table", {
  expect_gt(nrow(get_deputies_table(host = "services.mini.pw.edu.pl")), 0)
})

Try the sejmRP package in your browser

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

sejmRP documentation built on May 2, 2019, 5:16 a.m.