tests/testthat/test-spdx_license.R

testthat::test_that("spdx_license", {
  a <- spdx_license("GPL (>= 2) | file LICENCE")
  testthat::expect_equal(a, "https://spdx.org/licenses/GPL-2.0")
  b <- spdx_license("not-a-license")
  testthat::expect_equal(b, "not-a-license")
})

Try the codemetar package in your browser

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

codemetar documentation built on Sept. 3, 2022, 1:06 a.m.