tests/testthat/test_plotsulfur.R

context("plotsulfur test")
library(visualTest)
png("../test_img/plotsulfurtest.png")
plotsulfur()
dev.off()

test_that("output is correct", {
  finger <- getFingerprint(file = "../test_img/plotsulfurkey.png")
  expect_true(isSimilar(file = "../test_img/plotsulfurtest.png", 
    finger, threshold = 25))
})
austinragotzy/mathstat documentation built on May 13, 2019, 11:30 a.m.