Skip to content

Commit 9304459

Browse files
committed
fix some tests
1 parent 043414a commit 9304459

File tree

3 files changed

+87
-86
lines changed

3 files changed

+87
-86
lines changed

tests/testthat/test-qenv_eval_code.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ testthat::test_that("eval_code works with quoted code block", {
7070

7171
testthat::expect_equal(
7272
unlist(q1@code),
73-
c("a <- 1", "b <- 2")
73+
c("a <- 1\n", "b <- 2")
7474
)
7575
testthat::expect_equal(q1@env, list2env(list(a = 1, b = 2)))
7676
})

tests/testthat/test-qenv_extract.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ testthat::test_that("`[.` extract proper code", {
3838
qs <- q[object_names]
3939
testthat::expect_identical(
4040
unlist(qs@code),
41-
c("x<-1", "a<-1")
41+
c("x<-1\n", "a<-1;")
4242
)
4343
})
4444

@@ -49,7 +49,7 @@ testthat::test_that("`[.` preservers comments in the code", {
4949
qs <- q[c("x", "a")]
5050
testthat::expect_identical(
5151
unlist(qs@code),
52-
c("x<-1 #comment", "a<-1")
52+
c("x<-1 #comment\n", "a<-1;")
5353
)
5454
})
5555

0 commit comments

Comments
 (0)