☰
Debian Codegraph
@
1.13.0+dfsg-1
/
/
inst
/
app_template
/
tests
/
testthat
/
test-sort.R
☽
☼
inst/app_template/tests/testthat/test-sort.R
code
plain
raw
MIT
2013-2025 Posit Software, PBC; Joe Cheng, JJ Allaire, Yihui Xie, Jonathan McPherson,; RStudio, jQuery Foundation, jQuery contributors,; R Core Team
debian/copyright
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
})