Skip to content

Commit

Permalink
use new test image
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Jul 28, 2021
1 parent 4cd43a2 commit 73c41fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file removed tests/figs/test_image.jpg
Binary file not shown.
Binary file added tests/figs/test_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/testthat/test-get_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test_that("get_file works", {
# get_file returns raw data if it's an url and a character path if it's
# a local path. That's why we test it with the function read_image that calls it
expect_identical(
read_image("https://upload.wikimedia.org/wikipedia/commons/thumb/2/27/20140427Iris_versicolor1.jpg/320px-20140427Iris_versicolor1.jpg"),
read_image("../figs/test_image.jpg")
read_image("https://upload.wikimedia.org/wikipedia/commons/6/62/Biedronka.drs.png"),
read_image("../figs/test_image.png")
)
})

0 comments on commit 73c41fc

Please sign in to comment.