tests/testthat/test-im.list.R

test_that("multiplication works", {
  expect_equal(2 * 2, 4)
})

library(testthat)
library(imageRy)

test_that("im.list correctly retrieves available images", {
  # Get the list of available images
  available_images <- im.list()

  # Ensure the result is a character vector
  expect_type(available_images, "character")

  # Ensure the list is not empty (assuming the package includes images)
  expect_true(length(available_images) > 0)
})

Try the imageRy package in your browser

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

imageRy documentation built on Aug. 8, 2025, 7:31 p.m.