tests/testthat/test-get_cyclone.R

# Tests for get_bagyo() function -----------------------------------------------

test_that(
  "output is class tibble",
  {
    expect_s3_class(
      get_bagyo(),
      "bagyo"
    )
  }
)

test_that(
  "there is an output",
  {
    expect_output(print(get_bagyo()))
  }
)

Try the bagyo package in your browser

Any scripts or data that you put into this service are public.

bagyo documentation built on May 29, 2024, 1:25 a.m.