Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 1, 2023
1 parent 80b715e commit 205b226
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/testthat/test-different_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})

0 comments on commit 205b226

Please sign in to comment.