Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Oct 22, 2024
1 parent a15b352 commit c5fafdb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion tests/testthat/test-clip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion tests/testthat/test-no-clip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/test-rect.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test_that("fill and stroke colors", {
plot.new()
rect(0.2, 0.2, 0.8, 0.8, col = "blue", border = "red")
})
rectangle <- xml_find_all(x, "./g/rect")[[1]]
rectangle <- xml_find_all(x, "./g/g/rect")[[1]]
expect_equal(style_attr(rectangle, "fill"), rgb(0, 0, 1))
expect_equal(style_attr(rectangle, "stroke"), rgb(1, 0, 0))
})
4 changes: 3 additions & 1 deletion tests/testthat/test-scale-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion tests/testthat/test-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5fafdb

Please sign in to comment.