Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 646f80f

Browse files
committed
Update test for get_historical()
1 parent f91f636 commit 646f80f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-get_historical.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ test_that("Error handling", {
99
expect_error(get_historical("023001"), regexp = "Station not recognised.")
1010
expect_error(get_historical(latlon = 1), regexp = "2-element")
1111
expect_error(get_historical(latlon = c("a", "b")), regexp = "2-element")
12-
expect_warning(get_historical("023000", c(1, 2)),
13-
regexp = "Only one.*stationid.*latlon")
12+
expect_warning(get_historical(stationid = "023000", latlon = c(1, 2)),
13+
regexp = "Only one.*stationid.*latlon")
1414
expect_error(get_historical("023000", type = "sodiuhfosdhfoisdh"),
1515
regexp = "arg.*rain.*solar")
1616
})

0 commit comments

Comments
 (0)