Skip to content

Commit

Permalink
more test fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
osorensen committed Jan 14, 2025
1 parent b2e1377 commit 8de89af
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CRAN-SUBMISSION

This file was deleted.

6 changes: 6 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@
library(testthat)
library(BayesMallows)

skip_on_cran_linux <- function() {
if (identical(Sys.getenv("NOT_CRAN"), "false") && .Platform$OS.type == "unix" && Sys.info()[["sysname"]] == "Linux") {
skip("Skipping test on CRAN Linux")
}
}

test_check("BayesMallows")
1 change: 1 addition & 0 deletions tests/testthat/test-plot_top_k.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
skip_on_cran_linux()
test_that("predict_top_k works", {
set.seed(1)
model_fit <- compute_mallows(
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-smc_pairwise.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
skip_on_cran_linux()
test_that("update_mallows works with pairwise preferences", {
set.seed(3)
dat <- subset(beach_preferences, assessor <= 10)
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-smc_update_correctness.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
skip_on_cran()
test_that("update_mallows is correct for new rankings", {
triple_potato <- rbind(potato_visual, potato_visual, potato_visual)
rownames(triple_potato) <- seq_len(nrow(triple_potato))
Expand Down

0 comments on commit 8de89af

Please sign in to comment.