From 18c70f20f6ff96600493b2841a9646bf3f6082a8 Mon Sep 17 00:00:00 2001 From: "Carl A. B. Pearson" Date: Thu, 2 Nov 2023 16:06:38 +0000 Subject: [PATCH] switch prob domain testing to expect_equal --- tests/testthat/test-trans-numeric.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-trans-numeric.R b/tests/testthat/test-trans-numeric.R index d3fc742d..04f9c27f 100644 --- a/tests/testthat/test-trans-numeric.R +++ b/tests/testthat/test-trans-numeric.R @@ -118,6 +118,6 @@ test_that("Yeo-Johnson transform works", { }) test_that("probability transforms have domain (0,1)", { - expect_true(all(logit_trans()$domain == c(0, 1))) - expect_true(all(probit_trans()$domain == c(0, 1))) + expect_equal(logit_trans()$domain == c(0, 1)) + expect_equal(probit_trans()$domain == c(0, 1)) })