Debian Codegraph @

inst/app_template/tests/testthat/test-sort.R

raw
1 # Test the lexical_sort function from R/example.R
2 test_that("Lexical sorting works", {
3 expect_equal(lexical_sort(c(1, 2, 3)), c(1, 2, 3))
4 expect_equal(lexical_sort(c(1, 2, 3, 13, 11, 21)), c(1, 11, 13, 2, 21, 3))
5 })