Skip to content

Commit

Permalink
Add further tests of chisq_colpairs()
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroman committed Nov 12, 2023
1 parent 056ffe5 commit 5a3ed6c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: qtl2
Version: 0.33-5
Date: 2023-11-10
Version: 0.33-6
Date: 2023-11-12
Title: Quantitative Trait Locus Mapping in Experimental Crosses
Description: Provides a set of tools to perform quantitative
trait locus (QTL) analysis in experimental crosses. It is a
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## qtl2 0.33-5 (2023-11-10)
## qtl2 0.33-6 (2023-11-12)

### Major changes

Expand Down
6 changes: 6 additions & 0 deletions tests/testthat/test-chisq_colpairs.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ test_that("chisq_colpairs works", {

expect_equal(result, expected)

# throws error if you give a single-column matrix
expect_error( chisq_colpairs(z[,1,drop=FALSE]) )

# throws error if you give a vector
expect_error( chisq_colpairs(z[,1]) )

})

0 comments on commit 5a3ed6c

Please sign in to comment.