Skip to content

Commit

Permalink
Add two more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed Nov 28, 2023
1 parent 2396d3a commit 672e298
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/testthat/test-function-getExampleData.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
test_that("getExampleData() works", {

f <- kwb.en13508.2:::getExampleData

result <- f()

expect_identical(
names(result),
c("header.info", "inspections", "observations")
)
})
7 changes: 7 additions & 0 deletions tests/testthat/test-function-getExampleFile.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
test_that("getExampleFile() works", {

f <- kwb.en13508.2:::getExampleFile

expect_true(file.exists(f()))

})

0 comments on commit 672e298

Please sign in to comment.