Skip to content

Commit

Permalink
foofun -> foo
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jan 5, 2024
1 parent b173e1b commit 7cb9709
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 46 deletions.
72 changes: 36 additions & 36 deletions tests/testthat/_snaps/rd-family.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,83 +3,83 @@
Code
out
Output
$foofun1.Rd
$foo1.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in ./<text>
\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 ./<text>
\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 ./<text>
\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 ./<text>
\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}
Expand Down
18 changes: 8 additions & 10 deletions tests/testthat/test-rd-family.R
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 7cb9709

Please sign in to comment.