Skip to content

Commit

Permalink
Merge pull request #31 from Genentech/add-tests-to-rd2markdown-item
Browse files Browse the repository at this point in the history
Add unit tests
  • Loading branch information
maksymiuks authored May 25, 2023
2 parents b448cb8 + f4b9e5a commit bdc4685
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-rd2markdown-item.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test_that("rd2markdown item empty tag does not throw error", {
rd <- rawRd("\\itemize{\\item{}{}}")
expect_silent(md <- rd2markdown(rd))
expect_equal(md, " * ")
})

0 comments on commit bdc4685

Please sign in to comment.