tests/testthat/test_historic_nth_percentile.R

context("historic nth percentile plot")

test_that("historic nth percentile plot generates ggplot object", {
  
  ex <- historic_nth_percentile_plot(
    mapviz, 
    mapviz$roster %>% 
      dplyr::filter(schoolname == 'Three Sisters Elementary School') %>% 
      dplyr::select(studentid) %>% unlist() %>% unname(),
    'Mathematics'
  )
  
  expect_is(ex, 'ggplot')
  
})
almartin82/mapvizieR documentation built on June 3, 2023, 10:53 a.m.