tests/testthat/test-to_dwc.R

test_that("field name conversion works", {

  expect_equal(to_dwc("record_id"), "occurrenceID")

  expect_equal(to_native("occurrenceID"), "record_id")

  expect_equal(from_schema("unit.unitId"), "record_id")

})

Try the finbif package in your browser

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

finbif documentation built on April 12, 2025, 2:22 a.m.