-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(query): add tests for query_chroms
- Loading branch information
1 parent
b3b2781
commit 3a48e8b
Showing
7 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
) | ||
}) | ||
|