diff --git a/tests/testthat/_snaps/rd-family.md b/tests/testthat/_snaps/rd-family.md index 64746072..915bba09 100644 --- a/tests/testthat/_snaps/rd-family.md +++ b/tests/testthat/_snaps/rd-family.md @@ -3,83 +3,83 @@ Code out Output - $foofun1.Rd + $foo1.Rd % Generated by roxygen2: do not edit by hand % Please edit documentation in ./ - \name{foofun1} - \alias{foofun1} - \title{foofun1} + \name{foo1} + \alias{foo1} + \title{foo1} \usage{ - foofun1() + foo1() } \description{ - foofun1 + foo1 } \seealso{ Other a: - \code{\link{Foofun3}()}, - \code{\link{foofun}()}, - \code{\link{foofun2}()} + \code{\link{Foo3}()}, + \code{\link{foo}()}, + \code{\link{foo2}()} } \concept{a} - $foofun2.Rd + $foo2.Rd % Generated by roxygen2: do not edit by hand % Please edit documentation in ./ - \name{foofun2} - \alias{foofun2} - \title{foofun2} + \name{foo2} + \alias{foo2} + \title{foo2} \usage{ - foofun2() + foo2() } \description{ - foofun2 + foo2 } \seealso{ Other a: - \code{\link{Foofun3}()}, - \code{\link{foofun}()}, - \code{\link{foofun1}()} + \code{\link{Foo3}()}, + \code{\link{foo}()}, + \code{\link{foo1}()} } \concept{a} - $Foofun3.Rd + $Foo3.Rd % Generated by roxygen2: do not edit by hand % Please edit documentation in ./ - \name{Foofun3} - \alias{Foofun3} - \title{Foofun3} + \name{Foo3} + \alias{Foo3} + \title{Foo3} \usage{ - Foofun3() + Foo3() } \description{ - Foofun3 + Foo3 } \seealso{ Other a: - \code{\link{foofun}()}, - \code{\link{foofun1}()}, - \code{\link{foofun2}()} + \code{\link{foo}()}, + \code{\link{foo1}()}, + \code{\link{foo2}()} } \concept{a} - $foofun.Rd + $foo.Rd % Generated by roxygen2: do not edit by hand % Please edit documentation in ./ - \name{foofun} - \alias{foofun} - \title{foofun} + \name{foo} + \alias{foo} + \title{foo} \usage{ - foofun() + foo() } \description{ - foofun + foo } \seealso{ Other a: - \code{\link{Foofun3}()}, - \code{\link{foofun1}()}, - \code{\link{foofun2}()} + \code{\link{Foo3}()}, + \code{\link{foo1}()}, + \code{\link{foo2}()} } \concept{a} diff --git a/tests/testthat/test-rd-family.R b/tests/testthat/test-rd-family.R index 2aa036b0..fb7b8b59 100644 --- a/tests/testthat/test-rd-family.R +++ b/tests/testthat/test-rd-family.R @@ -125,24 +125,22 @@ test_that("custom family prefixes can be set", { }) test_that("careful ordering", { - # Can't use foo1 because it's used as class in another test - out <- roc_proc_text(rd_roclet(), " - #' foofun1 + #' foo1 #' @family a - foofun1 <- function() {} + foo1 <- function() {} - #' foofun2 + #' foo2 #' @family a - foofun2 <- function() {} + foo2 <- function() {} - #' Foofun3 + #' Foo3 #' @family a - Foofun3 <- function() {} + Foo3 <- function() {} - #' foofun + #' foo #' @family a - foofun <- function() {} + foo <- function() {} ") expect_snapshot({