Skip to content

Commit

Permalink
use & not && for equality testing and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kriemo committed Jan 2, 2019
1 parent 85a1f27 commit 20e5d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_types.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ test_that("factors with no entries are handled ", {

expect_warning(res_x <- bed_intersect(x_facs_grpd, x_empty_groups))
expect_true(all(res_x$chrom == "chr1"))
expect_true(all(res_x$strand.x == "+" && res_x$strand.y == "+"))
expect_true(all(res_x$strand.x == "+" & res_x$strand.y == "+"))

})

test_that("complex, raw, and other types are not supported", {
tmp <- x
tmp$compex <- 1 + 2i
tmp$complex <- 1 + 2i
expect_error(bed_intersect(tmp, tmp))

tmp <- x
Expand Down

0 comments on commit 20e5d1a

Please sign in to comment.