tests/testthat/test-movebank_constants.R

test_that("check for duplicated constants", {
  expect_true(all(names(mb_column_units) %in% names(movebank_column_types)))
  expect_true(all(names(mb_column_units_underscore) %in% names(mb_column_types_underscore)))
  expect_equal(anyDuplicated(names(movebank_column_types)), 0L)
  expect_equal(anyDuplicated(names(mb_column_units)),0L)
})

Try the move2 package in your browser

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

move2 documentation built on April 4, 2025, 12:24 a.m.