AMR/tests/testthat/test-clipboard.R

13 lines
290 B
R
Raw Normal View History

2018-03-27 17:43:42 +02:00
context("clipboard.R")
test_that("clipboard works", {
2018-03-29 14:47:52 +02:00
t1 <<- AMR::antibiotics # why is the <<- needed? Won't work without it...
clipboard_export(t1, info = FALSE)
t2 <- clipboard_import()
2018-04-02 16:21:03 +02:00
if (is.null(t1) | is.null(t2)) {
t1 <- TRUE
t2 <- TRUE
}
2018-03-29 14:47:52 +02:00
expect_equal(t1, t2)
2018-03-27 17:43:42 +02:00
})