mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 06:46:11 +01:00
Update test-clipboard.R
This commit is contained in:
parent
136272cb71
commit
258e080756
@ -2,8 +2,10 @@ context("clipboard.R")
|
|||||||
|
|
||||||
test_that("clipboard works", {
|
test_that("clipboard works", {
|
||||||
# why is the <<- needed? Won't work without it...
|
# why is the <<- needed? Won't work without it...
|
||||||
t1 <<- AMR::antibiotics
|
if (Sys.info()['sysname'] %like% "Windows") {
|
||||||
clipboard_export(t1, info = FALSE)
|
t1 <<- AMR::antibiotics
|
||||||
t2 <- clipboard_import()
|
clipboard_export(t1, info = FALSE)
|
||||||
expect_equal(t1, t2)
|
t2 <- clipboard_import()
|
||||||
|
expect_equal(t1, t2)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user