tests/testthat/test-has.key.r

library(hash)
library(testthat)

context('has.key')

test_that("has.key", {
  #' Ensure that there are no keys on emptyhash
  h <- hash()
  'c' %>% has.key(h) %>% expect_false()
  
})
decisionpatterns/r-hash documentation built on Feb. 6, 2019, 10:27 p.m.