tests/testthat/test-bearing.R

test_that("bearing works", {
  expect_equivalent(round(track_bearing(c(0, 0, 1, 0), c(0, 1, 1, 0)), digits = 2L),
                    c(0.0, 89.99, -134.8, NA))
})

Try the traipse package in your browser

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

traipse documentation built on Oct. 10, 2022, 9:06 a.m.