File: test_DataClasses.R

package info (click to toggle)
r-bioc-biobase 2.24.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,288 kB
  • ctags: 64
  • sloc: ansic: 711; makefile: 5; sh: 3
file content (14 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
testNew <- function() {
    ## create instances of non-virtual objects with simple call to "new"
    nms <- ls(getNamespace("Biobase"),all=TRUE)
    classes <- gsub(".__C__", "", nms[grep(".__C__", nms)])
    isVirtual <- sapply(classes, function(nm) getClass(nm)@virtual)
    res <- lapply(classes[!isVirtual],
                  function(x) suppressWarnings(new(x)))
}

test_MIAME_construction <- function() {
    checkTrue(validObject(new("MIAME")))
    checkTrue(validObject(MIAME()))
    checkIdentical(new("MIAME", name="mytest"), MIAME(name="mytest"))
}