From 12faa6d1cfe9928a9c3a5d2c2d130c5ddddd0299 Mon Sep 17 00:00:00 2001 From: Max Kuhn Date: Fri, 25 Oct 2024 21:44:24 -0400 Subject: [PATCH] update tests based on dev ggplot2 (#951) --- tests/testthat/test-autoplot.R | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/testthat/test-autoplot.R b/tests/testthat/test-autoplot.R index d64c56b4..320bb0c5 100644 --- a/tests/testthat/test-autoplot.R +++ b/tests/testthat/test-autoplot.R @@ -104,9 +104,6 @@ test_that("performance plot for iterative search", { expect_equal(rlang::get_expr(p$mapping$x), expr(.iter)) expect_equal(rlang::get_expr(p$mapping$y), expr(mean)) expect_equal(p$labels$x, "Iteration") - expect_equal(p$labels$y, "mean") - expect_equal(p$labels$ymin, "mean - const * std_err") - expect_equal(p$labels$ymax, "mean + const * std_err") p <- autoplot(mt_spln_knn_bo_sep, type = "performance", metric = "rmse") expect_true(isTRUE(all.equal(unique(p$data$.metric), "rmse"))) @@ -183,7 +180,6 @@ test_that("regular grid plot", { expect_equal(p$labels$y, "") expect_equal(p$labels$colour, as.name("%^*#")) expect_equal(p$labels$x, "Cost") - expect_equal(p$labels$group, "%^*#") expect_true(grepl("^trans", class(p$scales$scales[[1]]$trans))) expect_equal(p$scales$scales[[1]]$trans$name, "log-2")