tests/testthat/test-remove_false_pos.R

context("test-remove_false_pos.R")

test_that("false positives are correctly removed in small example", {
    expect_error(remove_false_pos(small_example, alpha = 0))
    expect_equal(remove_false_pos(small_example), small_example_result)
})

test_that("false positives are correctly removed in big example", {
    expect_equal(remove_false_pos(big_example), big_example_result)
})
andrew-edwards/eDNAcutoff documentation built on Dec. 30, 2020, 6:46 p.m.