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)
shinra-dev/memuse documentation built on Jan. 25, 2023, 6:26 p.m.