Skip to content

Commit 70de494

Browse files
committed
Corrected rollmean test
1 parent e8643bf commit 70de494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-rollMean.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
test_that("roll_mean works", {
22
# example 1
3-
expect_equal(roll_mean(1:10,2), c(1,1.5:9))
3+
expect_equal(roll_mean(1:10,2), c(1,1.5:9.5))
44
# dummy with all equal values
55
expect_equal(roll_mean(rep(1,100), k = 2), rep(1,100))
66
})

0 commit comments

Comments
 (0)