fix tests

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-03-27 17:58:46 +02:00
1 parent 6f7730dcaa
commit 1b3cc41c08
3 files changed
+8 -6

No files matched your search

Binary file not shown.
+7 -5
View File
@@ -1,9 +1,11 @@
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)
if (Sys.info()['sysname'] == "Windows") {
# why is the <<- needed? Won't work without it...
t1 <<- AMR::antibiotics
clipboard_export(t1, info = FALSE)
t2 <- clipboard_import()
expect_equal(t1, t2)
}
})