tests/testthat/test-get_options_names.R

library(SticsRFiles)

stics_version <- get_stics_versions_compat()$latest_version
version_num <- get_version_num()

context("Reaserching option names")

xml_path <- file.path(get_examples_path(file_type = "xml"), "file_plt.xml")

test_that("Reaserching option names", {
   expect_equal(length(get_options_names(xml_path)), 45)
   expect_equal(
     length(get_options_names(xml_path, c("codemonocot", "codlainet"))),
     2)
})

Try the SticsRFiles package in your browser

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

SticsRFiles documentation built on May 29, 2024, 4:18 a.m.