Skip to content

Commit

Permalink
#37 add negative test case
Browse files Browse the repository at this point in the history
  • Loading branch information
spoltier committed May 7, 2024
1 parent f306c37 commit 03f8d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified inst/unitTests/resources/test37.xlsx
Binary file not shown.
2 changes: 2 additions & 0 deletions inst/unitTests/runit.workbook.readNamedRegion.R
Original file line number Diff line number Diff line change
Expand Up @@ -395,5 +395,7 @@ test.workbook.readNamedRegion <- function() {
read2 <- readNamedRegion(wb37xlsx, 'Bla', worksheetName = 'Sheet2')
checkEquals(colnames(read1), c("bla1"))
checkEquals(colnames(read2), c("bla2"))

checkException(readNamedRegion(wb37xlsx, 'Bla', worksheetName = 'Sheet3'))
}

0 comments on commit 03f8d92

Please sign in to comment.