tests/testthat/test-aaa.R

context("redux (basic test)")

test_that("use", {
  r <- test_hiredis_connection()
  expect_equal(r$PING(), redis_status("PONG"))
  key <- "redisapi-test:foo"
  expect_equal(r$SET(key, "bar"), redis_status("OK"))
  expect_equal(r$GET(key), "bar")
  r$DEL(key)
})
richfitz/redux documentation built on Jan. 19, 2024, 5:53 p.m.