tests/testthat/test-string.R

context("Parsing and substring a character vector")

test_that("substring from the end of the string.", {
  expect_equal(substr_left("output.txt", -4), "output")
  expect_equal(substr_left("output.txt", 6), "output")
})

Try the yCrypticRNAs package in your browser

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

yCrypticRNAs documentation built on May 29, 2017, 5:49 p.m.