Skip to content

Commit

Permalink
finished making changes as requested by Ripley, tests all pass, this …
Browse files Browse the repository at this point in the history
…version submitted to CRAN
  • Loading branch information
reumandc committed Jan 8, 2021
1 parent 9d5f866 commit f8f7a72
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ Suggests:
rmarkdown,
testthat,
vdiffr
VignetteBuilder: knitr
VignetteBuilder:
knitr,
rmarkdown
RoxygenNote: 7.1.0
7 changes: 7 additions & 0 deletions tests/testthat/helper-utils.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Provided by Lionel Henry
expect_doppelganger <- function(title, fig, path = NULL, ...)
{
testthat::skip_if_not_installed("vdiffr")
vdiffr::expect_doppelganger(title, fig, path = path, ...)
}

2 changes: 1 addition & 1 deletion tests/testthat/tests_tsvreq_classic_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ test_that("test the plot method",{
inp<-tsvreq_classic(X)

Test_plot_tsvreq_classic<-function(){plot(inp)}
vdiffr::expect_doppelganger(title="Test-plot-tsvreq-classic",fig=Test_plot_tsvreq_classic)
expect_doppelganger(title="Test-plot-tsvreq-classic",fig=Test_plot_tsvreq_classic)
})
2 changes: 1 addition & 1 deletion tests/testthat/tests_tsvreq_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ test_that("test the plot method",{
inp<-tsvreq(ts=1:10,com=c(10:1)*rep(2,10),comnull=rep(2,10),tsvr=10:1,wts=2*c(1:10))

Test_plot_tsvreq<-function(){plot(inp)}
vdiffr::expect_doppelganger(title="Test-plot-tsvreq",fig=Test_plot_tsvreq)
expect_doppelganger(title="Test-plot-tsvreq",fig=Test_plot_tsvreq)
})

0 comments on commit f8f7a72

Please sign in to comment.