Skip to content

Commit fcadb26

Browse files
committed
epix_slide tests are now moved to km-fix-epix_slide as epix_slide has a bug.
1 parent f9e03f1 commit fcadb26

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/testthat/test-methods-epi_archive.R

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -65,28 +65,3 @@ test_that("data.table merging works as intended",{
6565
as_epi_archive(merge(dt1,dt2))
6666
)
6767
})
68-
69-
# (epi_archive) slide tests
70-
test_that("epix_slide only works on an epi_archive",{
71-
expect_error(epix_slide(data.frame(x=1)))
72-
})
73-
74-
test_that("epix_slide works as intended",{
75-
x2 <- ea$clone()$DT %>%
76-
filter(geo_value == "ca", version <= as.Date("2020-06-09")) %>%
77-
select(-percent_cli,-case_rate_7d_av) %>%
78-
mutate(binary = 2^(row_number()-1)) %>%
79-
as_epi_archive()
80-
81-
time_values <- seq(as.Date("2020-06-01"),
82-
as.Date("2020-06-09"),
83-
by = "1 day")
84-
xx <- epix_slide(x = x2,
85-
f = ~ sum(.x$binary),
86-
n = 3,
87-
group_by = geo_value,
88-
ref_time_values = time_values,
89-
new_col_name = '3d_sum_binary')
90-
91-
# No test here as this is broken
92-
})

0 commit comments

Comments
 (0)