tests/clear.R

library(hash)
library( testthat )

h <- hash( letters, 1 )

  expect_is( h, "hash" )
  expect_that( length(h), equals(26) )
  clear(h)

  expect_that( length(h), equals(0) ) 

Try the hash package in your browser

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

hash documentation built on Aug. 20, 2023, 1:08 a.m.