From bd54b7ab9b882d127e0ace6da00cc467c10f1c3f Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 2 Jul 2023 14:31:22 +0200 Subject: [PATCH] fix tests --- tests/testthat/test-hdi.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-hdi.R b/tests/testthat/test-hdi.R index d74ac27ca..84785b364 100644 --- a/tests/testthat/test-hdi.R +++ b/tests/testthat/test-hdi.R @@ -13,9 +13,9 @@ test_that("hdi", { expect_length(capture.output(print(hdi(distribution_normal(1000), ci = c(0.80, 0.90)))), 5) expect_message(hdi(c(2, 3, NA))) - expect_message(hdi(c(2, 3))) + expect_warning(hdi(c(2, 3))) expect_message(hdi(distribution_normal(1000), ci = 0.0000001)) - expect_message(hdi(distribution_normal(1000), ci = 950)) + expect_warning(hdi(distribution_normal(1000), ci = 950)) expect_message(hdi(c(0, 0, 0))) })