Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (12 sloc) 361 Bytes
context("console functionality")
testthat::describe("console functionality", {
skip_if_not_rstudio()
rstudioapi::sendToConsole("x <- whereami()")
it("class", {
testthat::expect_true(inherits(x, c("whereami","character")))
})
it("value", {
testthat::expect_equal(basename(x[1]), "Console")
})
#rstudioapi::sendToConsole("cat('\f')")
})
You can’t perform that action at this time.