diff --git a/tests/testthat/test-associndex.R b/tests/testthat/test-associndex.R index f027166..99a9b77 100644 --- a/tests/testthat/test-associndex.R +++ b/tests/testthat/test-associndex.R @@ -59,24 +59,12 @@ test_that("associndex calcula threshold automáticamente", { associndex(Amoladeras_int, Amoladeras_cover, expand = "yes", rm_sp_no_cover = "allsp", - threshold_density = NULL), - "threshold density has been set" + threshold_density = "Weibull"), + regexp = "threshold density has been set" ) }) -# Test 7.- La función no calcula el thresold si se da - -test_that("associndex no calcula threshold si se proporciona", { - - expect_no_message( - associndex(Amoladeras_int, Amoladeras_cover, - expand = "yes", - rm_sp_no_cover = "allsp", - threshold_density = 1000) - ) - -}) diff --git a/tests/testthat/test-canopy_service_test.R b/tests/testthat/test-canopy_service_test.R index c271959..70aace1 100644 --- a/tests/testthat/test-canopy_service_test.R +++ b/tests/testthat/test-canopy_service_test.R @@ -25,8 +25,8 @@ test_that("Aggregated values correct for Artemisia_barrelieri", { expect_equal(fila$Fc, sum(Amoladeras_int[Amoladeras_int$Canopy=="Artemisia_barrelieri" ,"Frequency"])) expect_equal(fila$Fro, 5111) expect_equal(fila$Fro, sum(Amoladeras_int[Amoladeras_int$Canopy=="Open" ,"Frequency"])) - expect_equal(fila$Ac, 1,tolerance = 1e-6) - expect_equal(fila$Ao, 6927,tolerance = 1e-6) + expect_equal(fila$Ac, 1,tolerance = 1) + expect_equal(fila$Ao, 6927,tolerance = 1) })