tests/testthat/test_deg2rad.R

library(greatcircle)

context("Helper functions")

test_that("compute degree to radians", {
  expect_equal(deg2rad(180), pi)
  expect_equal(deg2rad(270), 1.5 * pi)
})
AlexanderHelman/greatcircle documentation built on May 4, 2019, 1:08 p.m.