From f820ffa7b45889daae2de0ac6fe7d849a08550a0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 10 Oct 2024 22:11:53 +0200 Subject: [PATCH] fix test --- tests/testthat/test-row_count.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-row_count.R b/tests/testthat/test-row_count.R index 91b7ddd49..7eea5d6a6 100644 --- a/tests/testthat/test-row_count.R +++ b/tests/testthat/test-row_count.R @@ -23,7 +23,7 @@ test_that("row_count, errors or messages", { expect_error(expect_warning(row_count(iris, select = "abc")), regex = "must be a valid") expect_error(expect_warning(row_count(iris, select = "abc", count = 3)), regex = "No columns") expect_error(row_count(iris[1], count = 3), regex = "with at least") - expect_error(row_count(d_mn[-c(1:4), , drop = FALSE], count = 2), regex = "one row") + expect_error(row_count(iris[-seq_len(nrow(iris)), , drop = FALSE], count = 2), regex = "one row") }) test_that("row_count, exact match", {