Skip to content

Commit 6f047cc

Browse files
committed
test: screen_tone
1 parent 7fb42ec commit 6f047cc

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

tests/testthat/_snaps/effects/screen-tone.svg

Lines changed: 23 additions & 0 deletions
Loading

tests/testthat/test-effects.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ test_that("lineweave works", {
2626
as_recordedplot()
2727
)
2828
})
29+
30+
test_that("screen_tone works", {
31+
texture <- tile_matrix(blue_noise_64x64 * 255, ncol(png), nrow(png))
32+
vdiffr::expect_doppelganger(
33+
"screen_tone",
34+
screen_tone(png, texture) |>
35+
as_recordedplot()
36+
)
37+
})

0 commit comments

Comments
 (0)