tests/testthat/test_functions.R

context( "Testing functions from ExpressionAtlas package" )

test_that( "Accession validation returns true or false at the right times", {
    
    expect_true( .isValidExperimentAccession( "E-MTAB-3007" ) )
    expect_false( .isValidExperimentAccession( "DRP000391" ) )
    expect_false( .isValidExperimentAccession( ) )

} )

Try the ExpressionAtlas package in your browser

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

ExpressionAtlas documentation built on Nov. 8, 2020, 5:39 p.m.