We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d94ed commit c525729Copy full SHA for c525729
tests/testthat/test-qenv_get_code.R
@@ -1,5 +1,9 @@
1
pasten <<- function(...) paste(..., collapse = "\n")
2
3
+testthat::test_that("get_code returns empty character if no code", {
4
+ expect_identical(get_code(qenv()), "")
5
+})
6
+
7
testthat::test_that("get_code returns code (character(1) by default) of qenv object", {
8
q <- qenv()
9
q <- eval_code(q, quote(x <- 1))
0 commit comments