Skip to content

Commit

Permalink
added singleSample test where no class is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
jasenfinch committed Dec 7, 2020
1 parent 4dda346 commit 159f4b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testthat/test-singleSample.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ test_that('single sample works',{
expect_s4_class(bd,'Binalysis')
})

test_that('single sample works with no class specified',{
file <- metaboData::filePaths('FIE-HRMS','BdistachyonEcotypes')[1]
bd <- singleSample(file,verbose = TRUE)

expect_s4_class(bd,'Binalysis')
})

test_that('single samples errors with > 1 file',{
file <- metaboData::filePaths('FIE-HRMS','BdistachyonEcotypes')[1:2]

Expand Down

0 comments on commit 159f4b6

Please sign in to comment.