Skip to content

Commit

Permalink
updating tests and preparing the package for checks
Browse files Browse the repository at this point in the history
  • Loading branch information
michbur committed Jul 23, 2024
1 parent 191f330 commit 89c1a40
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ docs
^cran-comments\.md$
^CRAN-RELEASE$
^CRAN-SUBMISSION$
CONTRIBUTING
joss
.github
3 changes: 1 addition & 2 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ pre-process raw data of amplification curves, Bioinformatics. 31 (2015)
pre-process raw data of amplification curves, Bioinformatics. 31 (2015)
2900–2902. https://doi.org/10.1093/bioinformatics/btv205.


The 0.2.6 release adds more data sets and features
The 0.2.6 release adds more data sets and features.
4 changes: 2 additions & 2 deletions tests/testthat/test_encu.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ test_that("encu is a function to calculate numerous features from amplification

expect_is(res$f.tdp, "numeric")
expect_is(res, "data.frame")
expect_that(res$hookreg_hook == 0, expect_true())
expect_that(res$top == 25, expect_true())
expect_true(res$hookreg_hook == 0)
expect_true(res$top == 25)
expect_length(res, 93)
expect_true(res$amptester_shapiro == FALSE)
expect_true(res$amptester_rgt == TRUE)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test_head2tailratio.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ test_that("head2tailratio gives the correct dimensions and properties", {

expect_that(res, is_a("numeric"))
expect_that(res_normalized, is_a("numeric"))
expect_that(res <= 3.589284, expect_true())
expect_that(res_normalized >= 23, expect_true())
expect_true(res <= 3.589284)
expect_true(res_normalized >= 23)
})

0 comments on commit 89c1a40

Please sign in to comment.