Skip to content

Commit a5f397f

Browse files
committed
Refactor musing in tests into Issue + link (#485)
1 parent 2088415 commit a5f397f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/testthat/test-utils.R

+3-4
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,9 @@ test_that("guess_period works", {
241241
expect_identical(guess_period(c(1, 8, 15)), 7)
242242
expect_identical(guess_period(c(1L, 8L, 15L)), 7L)
243243
expect_identical(guess_period(c(0, 7, 14, 15)), 1)
244-
# We currently allow the guessed frequency to no appear in the diffs, but this
245-
# might not be a good idea as it likely indicates an issue with the data. If
246-
# we drop this behavior we could also drop the gcd algorithm by just checking
247-
# the validity of the smallest diff:
244+
# We currently allow the guessed frequency to not appear in the diffs, but
245+
# this might not be a good idea as it likely indicates an issue with the data
246+
# (#485).
248247
expect_identical(guess_period(c(0, 2, 5)), 1)
249248
expect_identical(guess_period(c(0, 4, 10)), 2)
250249
# On Dates:

0 commit comments

Comments
 (0)