diff --git a/tests/testthat/test-views.R b/tests/testthat/test-views.R index 13d68aa..0d5b526 100644 --- a/tests/testthat/test-views.R +++ b/tests/testthat/test-views.R @@ -72,6 +72,9 @@ test_that("gov_population_yearly exposes one row per (year, canonical_govid)", { expect_setequal(df$year, c(2019L, 2020L)) expect_equal(nrow(df), 2L) expect_true(all(!is.na(df$population))) + # Hardcoded values are from the bundled fixture (regenerated 2026-04-29 + # against cog_pipeline aad34c6 + bd3e744). Update if the fixture is + # rebuilt against a different source vintage. expect_equal(df$population[df$year == 2019L], 1935878L) expect_equal(df$population[df$year == 2020L], 1952778L) # Uniqueness on (year, canonical_govid) across the whole view.