1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make-expectation.R
\name{make_expectation}
\alias{make_expectation}
\title{Make an equality test.}
\usage{
make_expectation(x, expectation = "equals")
}
\arguments{
\item{x}{a vector of values}
\item{expectation}{the type of equality you want to test for
(\code{"equals"}, \code{"is_equivalent_to"}, \code{"is_identical_to"})}
}
\description{
This a convenience function to make a expectation that checks that
input stays the same.
}
\examples{
x <- 1:10
make_expectation(x)
make_expectation(mtcars$mpg)
df <- data.frame(x = 2)
make_expectation(df)
}
\keyword{internal}
|