inst/unitTests/test_ShortGPL.R

## Test unit 'testShortGPL'

.setUp <-
function () {
	## Specific actions for svUnit: prepare context
	if ("package:svUnit" %in% search()) {
		.Log <- Log() ## Make sure .Log is created
		.Log$..Unit <- "inst/unitTests/runittestShortGPL.R"
		.Log$..File <- ""
		.Log$..Obj <- ""
		.Log$..Tag <- ""
		.Log$..Msg <- ""
		rm(..Test, envir = .Log)
	}
}

.tearDown <-
function () {
	## Specific actions for svUnit: clean up context
	if ("package:svUnit" %in% search()) {
		.Log$..Unit <- ""
		.Log$..File <- ""
		.Log$..Obj <- ""
		.Log$..Tag <- ""
		.Log$..Msg <- ""
		rm(..Test, envir = .Log)
	}
}

"testShortGPL" <-
function() {
        gpl = getGEO('GPL15505')
        checkTrue(inherits(gpl,'GPL'))
        checkEqualsNumeric(nrow(Table(gpl)),52,'Short table has wrong number of rows')
    }
ian1roberts/GEOquery documentation built on May 18, 2019, 1:27 a.m.