skip_on_cran() test_that("The ouput is correct", { data <- SDMtune:::t data@data <- data@data[, 1:4] m <- trainMaxnet(data = data) pred <- predict(m@model, data@data, type = "cloglog") expect_equal(sum(pred >= 0), nrow(data@data)) expect_equal(sum(pred <= 1), nrow(data@data)) })