Intro

Because functions give outputs as plots, unit testing would not work; manually testing each function instead.

Query 3

Expect success

?query3
query3()
query3(plot_type = "static", fill = "new_deaths")
query3(plot_type = "static", fill = "new_vaccinations")
query3(plot_type = "static", fill = "new_cases", log_scale = TRUE)
query3(plot_type = "static", fill = "new_deaths", log_scale = TRUE)
query3(plot_type = "static", fill = "new_vaccinations", log_scale = TRUE)
query3(projection = "globular")
query3(plot_type = "static", fill = "new_vaccinations", log_scale = TRUE, projection = "gilbert")
query3(plot_type = "dynamic")
query3(plot_type = "dynamic", fill = "new_deaths", log_scale = TRUE)
query3(plot_type = "dynamic", fill = "new_vaccinations", log_scale = TRUE, projection = "gilbert")
query3(palette = "Purples")
query3(plot_type = "dynamic", palette = "PuBuGn", log_scale = T)

Expect failure

query3(plot_type = "3")
query3(fill = "null")
query3(log_scale = 0)
query3(projection = "new")
query3(palette = "vintage")


tomzhang255/covidviz documentation built on May 15, 2022, 6:59 a.m.