tests/testthat/test-get_map_legends.R

test_that("get_map_legends works", {
  rmacrostrat_test_checks(fn = get_map_legends,
                          check_args = list(source_id = 1,
                                            lithology_type = "sedimentary",
                                            comments = "breccia"),
                          fail_args = list(# wrong argument
                                           lithology_set = "sedimentary",
                                           # wrong type
                                           source_id = "test",
                                           # invalid values
                                           scale = "teeny",
                                           carto = "teeny"),
                          warn_args = list(source_id = -1),
                          col_no = 24)
})

Try the rmacrostrat package in your browser

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

rmacrostrat documentation built on Oct. 18, 2024, 5:10 p.m.