tests/testthat/test-filter.R

context("Filters")

test_that("BasicFilter", {
    expect_error(SymbolFilter())
    expect_error(SymbolFilter(1, ">"))
    expect_error(SymbolFilter(1, "foo"))
    expect_error(TxEndFilter("foo"))
    expect_error(TxEndFilter(c(1,2), ">"))
    expect_error(SymbolFilter(c("foo","bar"), "startsWith"))
})

test_that("GRangesFilter", {
    expect_error(GRangesFilter())
    expect_error(GRangesFilter("foo"))
})

Try the Organism.dplyr package in your browser

Any scripts or data that you put into this service are public.

Organism.dplyr documentation built on Nov. 8, 2020, 5:45 p.m.