tests/testthat/test-shift.R

test_that("subtitle times can be shifted", {
  skip_non_utf8()
  x <- read_srt(srt_example())
  t1 <- x$start[1]
  x <- srt_shift(x, 99)
  t2 <- x$start[1]
  expect_gt(t2, t1)
})

Try the srt package in your browser

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

srt documentation built on May 29, 2024, 9:35 a.m.