tests/testthat/test_lsort.R

context("lsort")

test_that("lsort", {
  expect_equal(lsort(c("c", "a", "b")), c("a", "b", "c"))
  expect_equal(lsort( c("a", "ä", "ö", "o")),  c("a", "o", "ä", "ö"))
})

Try the BBmisc package in your browser

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

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.