Skip to content

Commit

Permalink
remove hardcoded assumptions about package sources in build environs
Browse files Browse the repository at this point in the history
  • Loading branch information
luisDVA committed Jan 25, 2024
1 parent d3ef387 commit 76fa617
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-overall-annotation.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ test_that("repository sources returns a repository-version combination", {
test_string <- c("library(generics)")
expect_match(
annotate_repo_source(test_string),
"library\\(generics\\) # CRAN v.*"
"library\\(generics\\) # \\w+ v.*"
)
})

test_that("repository sources returns a repository-version combination (p_load)", {
test_string <- c("p_load(generics)")
expect_match(
annotate_repo_source(test_string),
"p_load\\(\ngenerics # CRAN v.*\\)"
"p_load\\(\ngenerics # \w+ v.*\\)"
)
})

Expand All @@ -36,7 +36,7 @@ test_that("repository title and sources includes a repository-version combinatio
test_string <- c("library(generics)")
expect_match(
annotate_repostitle(test_string),
"CRAN v.*"
"\\w v.*"
)
})

Expand Down

0 comments on commit 76fa617

Please sign in to comment.