tests/util.R

check = function(a, b)
{
  print(match.call())
  stopifnot(all.equal(a, b, check.attributes=FALSE, check.names=FALSE))
}

library("feathercache")
file = tempfile()
htdigest(file, "realm", "user", "password")
check("user:realm:ebbc0ff9a121dbb6789bbe5f82174fa0", system(paste("cat", file), intern=TRUE))
htdigest(file, "realm", "user", "password")
check("user:realm:ebbc0ff9a121dbb6789bbe5f82174fa0", system(paste("cat", file), intern=TRUE))
bwlewis/feathercache documentation built on May 13, 2019, 9:06 a.m.