From 3676ce14998a71b4dd977e9f23535188275fb5a6 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 5 Nov 2024 11:59:53 -0600 Subject: [PATCH] Align argument name --- R/expect-self-test.R | 4 ++-- man/expect_success.Rd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/expect-self-test.R b/R/expect-self-test.R index 30d05520a..7262c7b3f 100644 --- a/R/expect-self-test.R +++ b/R/expect-self-test.R @@ -74,8 +74,8 @@ expect_failure <- function(expr, message = NULL, ...) { #' @export #' @rdname expect_success -expect_snapshot_failure <- function(x) { - expect_snapshot_error(x, "expectation_failure") +expect_snapshot_failure <- function(expr) { + expect_snapshot_error(expr, "expectation_failure") } #' @export diff --git a/man/expect_success.Rd b/man/expect_success.Rd index 22c8180d3..4978fde8f 100644 --- a/man/expect_success.Rd +++ b/man/expect_success.Rd @@ -15,7 +15,7 @@ expect_no_success(expr) expect_failure(expr, message = NULL, ...) -expect_snapshot_failure(x) +expect_snapshot_failure(expr) expect_no_failure(expr)