From 92893371aaef845abb339944f6a94f77d2f88060 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Fri, 11 Aug 2023 18:12:21 +0000 Subject: [PATCH] typo --- tests/testthat/test-sort_linter.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/testthat/test-sort_linter.R b/tests/testthat/test-sort_linter.R index 83a15f7c9..6bcef6d5f 100644 --- a/tests/testthat/test-sort_linter.R +++ b/tests/testthat/test-sort_linter.R @@ -80,16 +80,16 @@ test_that("sort_linter works with multiple lints in a single expression", { }) -test_that("sorted_linter skips usages calling sort arguments", { +test_that("sort_linter skips usages calling sort arguments", { linter <- sort_linter() - # any arguments to sorted --> not compatible + # any arguments to sort --> not compatible expect_lint("sort(x, decreasing = TRUE) == x", NULL, linter) expect_lint("sort(x, na.last = TRUE) != x", NULL, linter) expect_lint("sort(x, method_arg = TRUE) == x", NULL, linter) }) -test_that("sorted_linter skips when inputs don't match", { +test_that("sort_linter skips when inputs don't match", { linter <- sort_linter() expect_lint("sort(x) == y", NULL, linter) @@ -97,7 +97,7 @@ test_that("sorted_linter skips when inputs don't match", { expect_lint("sort(foo(x)) == x", NULL, linter) }) -test_that("sorted_linter blocks simple disallowed usages", { +test_that("sort_linter blocks simple disallowed usages", { linter <- sort_linter() lint_msg <- rex::rex("Use is.unsorted() to test the (un-)sortedness of a vector.")