tests/testthat/test-reconstruct_sequence.R

test_that("class is right",
          expect_is(reconstruct_sequence(t_dat), 
                    "character"))

dat_sequence <- "INITSSASQEGTRLNLICTVWHKKEEAEGFVVFLCKDRSGDCSPETSLKQLRLKRDPGIDGVGEISSQLMFTISQVTPLHSGTYQCCARSQKSGIRLQGHFFSILFxxxxxxxxxxxxxxxxxxFSHNEGTL"

test_that("example sequence1 is right length",
          expect_equal(nchar(reconstruct_sequence(t_dat)), 
                       132))

test_that("sequence1 is correct",
          expect_equal(reconstruct_sequence(t_dat),
                       dat_sequence))

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.