Skip to content

Commit a04c528

Browse files
committed
Fix test thinkos
Always run your tests before pushing...
1 parent e98f924 commit a04c528

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R-packages/covidcast/tests/testthat/test-utils.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ test_that("latest_issue gives only the latest issue", {
1717
})
1818

1919
test_that("earliest_issue gives only the earliest issue", {
20-
foo <- data.frame(
20+
foo <- data.frame(
2121
geo_value = c(rep("pa", 3), rep("tx", 3)),
2222
issue = c(3, 2, 1, 1, 2, 3),
2323
time_value = 1,
2424
value = c(4, 5, 6, 7, 8, 9))
2525

2626
earliest <- data.frame(
2727
geo_value = c("pa", "tx"),
28-
issue = 3,
28+
issue = 1,
2929
time_value = 1,
3030
value = c(6, 7))
3131

32-
expect_equal(earliest_issue(foo), latest)
32+
expect_equal(earliest_issue(foo), earliest)
3333
})

0 commit comments

Comments
 (0)