tests/issue-1.R

stopifnot(require(testthat))
context("issue#1")

library(naturalsort)

test_that("Returns several NAs when argument is just one element", {
   text <- "a-10.png"
   expected <- "a-10.png"
   actual <- naturalsort(text)
   expect_that(actual, equals(expected))
})

Try the naturalsort package in your browser

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

naturalsort documentation built on May 2, 2019, 5:55 a.m.