tests/testthat/test_202_extract_root_hash.R

test_that(
  "extract_root_hash",
  {
    expect_snapshot_error(
      extract_proof("ddd"),
      cran = FALSE
    )
    expect_snapshot(
      x = extract_root_hash(system.file("certificate.Bitcoin.pdf", package = "ROriginStamp")),
      cran = TRUE
    )
    expect_snapshot(
      x = extract_root_hash(system.file("proof.Bitcoin.xml", package = "ROriginStamp")),
      cran = TRUE
    )
    expect_snapshot(
      x = extract_root_hash(system.file("proof.Bitcoin.xml", package = "ROriginStamp")),
      cran = TRUE
    )
  }
)
rkrug/ROriginStamp documentation built on Aug. 16, 2022, 5:45 p.m.