tests/testthat/test-get_protein_redundancy.R

test_that("Redundancy in right format",
          expect_type(
            get_protein_redundancy(t_dat),
            "double"
          )
)

test_that("Redundancy for test file",
          expect_equal(
            get_protein_redundancy(t_dat, 132),
            4.56
          )
)

test_that("Redundancy protein legth is ok",
          expect_error(
            get_protein_redundancy(t_dat, 100)
          )
)

Try the HaDeX2 package in your browser

Any scripts or data that you put into this service are public.

HaDeX2 documentation built on Feb. 9, 2026, 5:07 p.m.