Skip to content

Commit

Permalink
test: add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Feb 20, 2024
1 parent 614e5e9 commit faf028c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-version.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ test_that("Test get_current_version() for success", {
expect_equal(class(x), "character")
expect_equal(length(x), 1L)
expect_equal(x, "07")

invisible(file.remove(".forcis"))
invisible(file.create(".forcis"))

x <- get_current_version()
expect_null(x)
})


Expand Down

0 comments on commit faf028c

Please sign in to comment.