Skip to content

Commit

Permalink
test(query): add tests for query_chroms
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespeapen committed Oct 16, 2024
1 parent b3b2781 commit 3a48e8b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 0 deletions.
Binary file added inst/extdata/chrom_test/a.bed.gz
Binary file not shown.
Binary file added inst/extdata/chrom_test/a.bed.gz.tbi
Binary file not shown.
Binary file added inst/extdata/chrom_test/b.bed.gz
Binary file not shown.
Binary file added inst/extdata/chrom_test/b.bed.gz.tbi
Binary file not shown.
Binary file added inst/extdata/chrom_test/c.bed.gz
Binary file not shown.
Binary file added inst/extdata/chrom_test/c.bed.gz.tbi
Binary file not shown.
11 changes: 11 additions & 0 deletions tests/testthat/test-query.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extdata <- system.file("extdata/chrom_test", package = "iscream")
bedfiles <- list.files(extdata, pattern = "*.bed.gz$", full.names = T)
chrs <- sort(paste0("chr", c(seq(1:22), "M", "X", "Y")))

test_that("query_chroms", {
expect_equal(
chrs,
query_chroms(bedfiles)
)
})

0 comments on commit 3a48e8b

Please sign in to comment.