tests/testthat/test_read_mkv.R

# get_mkv_info ─────────────────────────────────────────────────────────────────

test_that("get_mkv_info errors on a non-existent file", {
  expect_error(get_mkv_info("/nonexistent/file.mkv"), "Invalid input")
})

# read_subtitles_mkv ───────────────────────────────────────────────────────────

test_that("read_subtitles_mkv errors if file does not exist", {
  expect_error(read_subtitles_mkv("/nonexistent/file.mkv"), "file not found")
})

Try the subtools package in your browser

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

subtools documentation built on March 24, 2026, 5:07 p.m.