Skip to content

Commit

Permalink
effectsize vdiffr test
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Apr 27, 2024
1 parent 7779233 commit 3b0ff6f
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 6 additions & 10 deletions tests/testthat/test-plot.effectsize_table.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
test_that("`plot.see_effectsize_table()` works", {
library(effectsize)
m <- aov(mpg ~ factor(am) * factor(cyl), data = mtcars)
result <- eta_squared(m)
expect_s3_class(plot(result), "gg")
})

test_that("`plot.see_equivalence_test()` works", {
library(effectsize)
m <- aov(mpg ~ factor(am) * factor(cyl), data = mtcars)
result <- eta_squared(m)
expect_s3_class(plot(result), "gg")
result <- effectsize::eta_squared(m)
set.seed(123)
vdiffr::expect_doppelganger(
title = "aov - eta_squared - dot plot",
fig = plot(result)
)
})

0 comments on commit 3b0ff6f

Please sign in to comment.