From 20e5d1af25c14257fcc6975f661b5ea8db8c2c58 Mon Sep 17 00:00:00 2001 From: Kent Riemondy Date: Wed, 2 Jan 2019 10:36:58 -0700 Subject: [PATCH] use & not && for equality testing and fix typo --- tests/testthat/test_types.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test_types.R b/tests/testthat/test_types.R index 31584810..370d7aed 100644 --- a/tests/testthat/test_types.R +++ b/tests/testthat/test_types.R @@ -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