tests/testthat/test-get_ff_ind.R

library(dplyr, warn.conflicts = FALSE)

test_that("get_ff_ind(5) works", {
  expect_equal(get_ff_ind(5) %>%
                   select(ff_ind) %>%
                   distinct() %>%
                   pull() %>%
                   length(), 4)
})

Try the farr package in your browser

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

farr documentation built on Feb. 16, 2023, 8:11 p.m.