Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangchuangYu committed Aug 16, 2016
1 parent 3ded5a1 commit d724ca7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,7 +1,7 @@
Package: ChIPseeker
Type: Package
Title: ChIPseeker for ChIP peak Annotation, Comparison, and Visualization
Version: 1.9.6
Version: 1.9.7
Authors@R: c(person(given = "Guangchuang", family = "Yu",
email = "guangchuangyu@gmail.com",
role = c("aut", "cre")),
Expand Down
5 changes: 4 additions & 1 deletion NEWS
@@ -1,6 +1,9 @@
CHANGES IN VERSION 1.9.6
CHANGES IN VERSION 1.9.7
------------------------
o unit test <2016-08-16, Tue>

CHANGES IN VERSION 1.9.6
------------------------
o update vignette <2016-08-16, Tue>

CHANGES IN VERSION 1.9.5
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -24,7 +24,7 @@ install:
# Adapt as necessary starting from here

build_script:
- travis-tool.sh install_bioc BiocStyle AnnotationDbi DO.db DOSE org.Hs.eg.db TxDb.Hsapiens.UCSC.hg19.knownGene
- travis-tool.sh install_bioc BiocStyle IRanges AnnotationDbi DO.db DOSE org.Hs.eg.db TxDb.Hsapiens.UCSC.hg19.knownGene
- travis-tool.sh install_deps

test_script:
Expand Down
5 changes: 3 additions & 2 deletions tests/testthat/test-txdb.R
Expand Up @@ -5,8 +5,9 @@ context("TXDB")

test_that("txdb", {
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
ChIPseeker:::.ChIPseekerEnv(txdb)
expect_equal(ChIPseeker:::IDType(txdb), "Entrez Gene ID")
expect_equal(ChIPseeker:::TXID2EG("70455"), "uc002qsd.4/1")
expect_equal(ChIPseeker:::TXID2EG("70455", geneOnly=TRUE), "1")
}
expect_equal(ChIPseeker:::TXID2EG("70455", geneIdOnly=TRUE), "1")
})

0 comments on commit d724ca7

Please sign in to comment.