tests/testthat/test_ex158.r

context("ex158 test")
library(visualTest)
png("../test_img/ex158test.png")
ex158()
dev.off()

test_that("output", {
  finger <- getFingerprint(file = "../test_img/ex158key.png")
  expect_true(isSimilar(file = "../test_img/ex158test.png", finger, 
    threshold = 25))
})
joemckean/mathstat documentation built on May 30, 2019, 2:01 p.m.