Skip to content

Commit b967cdd

Browse files
committed
bquote not needed
1 parent 49d342b commit b967cdd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/testthat/test-qenv_get_warnings.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
testthat::test_that("get_warnings accepts a qenv object and returns character", {
2-
q <- eval_code(qenv(), bquote(warning("This is a warning!")))
2+
q <- eval_code(qenv(), quote(warning("This is a warning!")))
33
testthat::expect_identical(
44
get_warnings(q),
55
paste0(
@@ -10,7 +10,7 @@ testthat::test_that("get_warnings accepts a qenv object and returns character",
1010
})
1111

1212
testthat::test_that("get_warnings accepts a qenv.error object and returns NULL", {
13-
q <- eval_code(qenv(), bquote(error("This is a error!")))
13+
q <- eval_code(qenv(), quote(error("This is a error!")))
1414
testthat::expect_null(get_warnings(q))
1515
})
1616

@@ -19,14 +19,14 @@ testthat::test_that("get_warnings accepts a NULL object and returns NULL", {
1919
})
2020

2121
testthat::test_that("get_warnings accepts a qenv object with no warning and returns NULL", {
22-
q <- eval_code(qenv(), bquote("x <- 1"))
22+
q <- eval_code(qenv(), quote("x <- 1"))
2323
testthat::expect_null(get_warnings(q))
2424
})
2525

2626
testthat::test_that("get_warnings accepts a qenv object with 2 warnings", {
2727
q <- qenv() %>%
28-
eval_code(bquote(warning("This is a warning 1!"))) %>%
29-
eval_code(bquote(warning("This is a warning 2!")))
28+
eval_code(quote(warning("This is a warning 1!"))) %>%
29+
eval_code(quote(warning("This is a warning 2!")))
3030
testthat::expect_identical(
3131
get_warnings(q),
3232
paste0(
@@ -38,7 +38,7 @@ testthat::test_that("get_warnings accepts a qenv object with 2 warnings", {
3838
})
3939

4040
testthat::test_that("get_warnings accepts a qenv object with a single eval_code returning 2 warnings", {
41-
q <- qenv() %>% eval_code(bquote({
41+
q <- qenv() %>% eval_code(quote({
4242
warning("This is a warning 1!")
4343
warning("This is a warning 2!")
4444
}))
@@ -64,8 +64,8 @@ testthat::test_that("get_warnings accepts a qenv object with a single eval_code
6464

6565
testthat::test_that("get_warnings accepts a qenv object with 1 warning eval_code and 1 no warning eval_code", {
6666
q <- qenv() %>%
67-
eval_code(bquote("x <- 1")) %>%
68-
eval_code(bquote(warning("This is a warning 2!")))
67+
eval_code(quote("x <- 1")) %>%
68+
eval_code(quote(warning("This is a warning 2!")))
6969
testthat::expect_identical(
7070
get_warnings(q),
7171
paste0(

0 commit comments

Comments
 (0)