tests/testthat/test-station.R

test_that("block no", {
  expect_identical(
    check_block_no(block_no = "47991"),
    "47991"
  )
  expect_warning(
    expect_identical(
      check_block_no(block_no = 0371),
      "0371"
  ))
  expect_error(
    check_block_no(999999)
  )
  expect_error(
    check_block_no(47992)
  )
  expect_error(
    check_block_no("47992")
  )
})

Try the jmastats package in your browser

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

jmastats documentation built on April 12, 2025, 1:38 a.m.