tests/comparators.R

library(memuse)


f <- function(x, y)
{
  stopifnot(x<y)
  stopifnot(x<=y)
  stopifnot(!(x>y))
  stopifnot(!(x>=y))
  stopifnot(!(x==y))
  stopifnot(x!=y)
}


x <- mu(2000)
y <- mu(3000)
f(x, y)

x <- mu(2000)
y <- mu(3000, prefix="SI")
f(x, y)

x <- mu(2000)
y <- 3000
f(x, y)

Try the memuse package in your browser

Any scripts or data that you put into this service are public.

memuse documentation built on Feb. 16, 2023, 6:36 p.m.