tests/testthat/test-rank_list.R

test_that("Can create rank_list", {
  z <- rank_list(
    text = "You can drag, drap and re-order these items:",
    labels = c("one", "two", "three", "four", "five"),
    input_id = "example_2"
  )

  expect_s3_class(z, "rank_list")
})

Try the sortable package in your browser

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

sortable documentation built on March 31, 2023, 9:35 p.m.