tests/testthat/test-spdx_licence.R

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

Try the codemeta package in your browser

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

codemeta documentation built on Dec. 22, 2021, 1:06 a.m.