tests/testthat/test-function-get_dwd_url_specification.R

test_that("get_dwd_url_specification() works", {

  f <- kwb.dwd:::get_dwd_url_specification

  result <- f()

  expect_true(is.matrix(result))

  expect_identical(
    colnames(result),
    c("file_prefix", "folder_daily", "folder_hourly")
  )

  expect_true("precipitation" %in% rownames(result))
})
KWB-R/kwb.dwd documentation built on Sept. 28, 2022, 6:03 p.m.