Skip to content

Commit

Permalink
Merge pull request #115 from teunbrand/ggplot2_3.5.0
Browse files Browse the repository at this point in the history
Update tests for new version of ggplot2.
  • Loading branch information
jepusto authored Jan 22, 2024
2 parents 0da6cdc + 4ef7e51 commit 78447c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test_graphing_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ test_that("graph_SCD works for design = 'MBP'", {
expect_s3_class(Laski_graph2, "ggplot")
expect_invisible(print(Laski_graph2))

keys <- setdiff(names(Laski_graph1), c("data","plot_env", "labels","layers"))
keys <- setdiff(names(Laski_graph1), c("data","plot_env", "labels","layers", "layout"))
expect_equal(Laski_graph1[keys], Laski_graph2[keys])


Expand All @@ -126,7 +126,7 @@ test_that("graph_SCD works for design = 'MBP'", {
expect_s3_class(Laski_graph4, "ggplot")
expect_invisible(print(Laski_graph4))

keys <- setdiff(names(Laski_graph1), c("plot_env", "labels","layers"))
keys <- setdiff(names(Laski_graph1), c("data","plot_env", "labels","layers", "layout"))
expect_equal(Laski_graph3[keys], Laski_graph4[keys])

})
Expand Down Expand Up @@ -177,7 +177,7 @@ test_that("graph_SCD works for design = 'RMBB'", {
expect_s3_class(Thiemann_graph4, "ggplot")
expect_invisible(print(Thiemann_graph4))

keys <- setdiff(names(Thiemann_graph3), c("data","plot_env", "labels", "layers"))
keys <- setdiff(names(Thiemann_graph3), c("data","plot_env", "labels","layers", "layout"))
expect_equal(Thiemann_graph3[keys], Thiemann_graph4[keys])

})
Expand Down Expand Up @@ -233,7 +233,7 @@ test_that("graph_SCD works for design = 'CMB'", {
expect_s3_class(Bry_graph4, "ggplot")
expect_invisible(print(Bry_graph4))

keys <- setdiff(names(Bry_graph3), c("data","plot_env", "labels", "layers"))
keys <- setdiff(names(Bry_graph3), c("data","plot_env", "labels","layers", "layout", "guides"))
expect_equal(Bry_graph3[keys], Bry_graph4[keys])

})
Expand Down

0 comments on commit 78447c2

Please sign in to comment.