mirror of
https://github.com/msberends/AMR.git
synced 2025-12-15 10:30:21 +01:00
add tests using testthat
This commit is contained in:
9
tests/testthat/test-clipboard.R
Normal file
9
tests/testthat/test-clipboard.R
Normal file
@@ -0,0 +1,9 @@
|
||||
context("clipboard.R")
|
||||
|
||||
test_that("clipboard works", {
|
||||
# why is the <<- needed? Won't work without it...
|
||||
t1 <<- AMR::antibiotics
|
||||
clipboard_export(t1, info = FALSE)
|
||||
t2 <- clipboard_import()
|
||||
expect_equal(t1, t2)
|
||||
})
|
||||
Reference in New Issue
Block a user