test_that("link_license matchs exactly", { # R 3.1 uses http url skip_if_not(getRversion() >= "3.2.0") # Shouldn't match first GPL-2 expect_equal( autolink_license("LGPL-2"), "LGPL-2" ) expect_equal( autolink_license("MPL-2.0"), "MPL-2.0" ) }) test_that("link_license matches LICENSE", { expect_equal( autolink_license("LICENSE"), "LICENSE" ) expect_equal( autolink_license("LICENCE"), "LICENCE" ) })