From 205b2260654e2f5c4f57e59a4b9f0eae95d343ab Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 1 Oct 2023 15:22:29 +0200 Subject: [PATCH] lintr --- tests/testthat/test-different_models.R | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/testthat/test-different_models.R b/tests/testthat/test-different_models.R index 8a1a46a1e..c000f8ee2 100644 --- a/tests/testthat/test-different_models.R +++ b/tests/testthat/test-different_models.R @@ -54,32 +54,32 @@ test_that("bayesQR", { )) rez <- p_direction(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2, 2)) + expect_identical(c(nrow(rez), ncol(rez)), c(2L, 2L)) rez <- p_map(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2, 2)) + expect_identical(c(nrow(rez), ncol(rez)), c(2L, 2L)) rez <- p_significance(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2, 2)) + expect_identical(c(nrow(rez), ncol(rez)), c(2L, 2L)) rez <- rope(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2, 5)) + expect_identical(c(nrow(rez), ncol(rez)), c(2L, 5L)) rez <- hdi(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2, 4)) + expect_identical(c(nrow(rez), ncol(rez)), c(2L, 4L)) rez <- eti(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2, 4)) + expect_identical(c(nrow(rez), ncol(rez)), c(2L, 4L)) rez <- map_estimate(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2, 2)) + expect_identical(c(nrow(rez), ncol(rez)), c(2L, 2L)) rez <- point_estimate(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2, 4)) + expect_identical(c(nrow(rez), ncol(rez)), c(2L, 4L)) rez <- describe_posterior(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2, 10)) + expect_identical(c(nrow(rez), ncol(rez)), c(2L, 10L)) rez <- estimate_density(x) - expect_equal(c(nrow(rez), ncol(rez)), c(2048, 3)) + expect_identical(c(nrow(rez), ncol(rez)), c(2048L, 3L)) })