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 Jan. 27, 2026, 9:06 a.m.