Skip to content

Commit 930503f

Browse files
committed
fix typos in tests
1 parent 6338ce1 commit 930503f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/testthat/test-qenv_join.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ testthat::test_that("Joined qenv does not duplicate common code", {
4040

4141
testthat::expect_identical(
4242
unlist(q@code),
43-
c("iris1 <- iris", "mtcars1 <- mtcars", "mtcars2 <- mtcars")
43+
c("iris1 <- iris\n", "mtcars1 <- mtcars", "mtcars2 <- mtcars")
4444
)
4545
testthat::expect_identical(get_code_attr(q, "id"), c(get_code_attr(q1, "id"), get_code_attr(q2, "id")[3]))
4646
})
@@ -64,7 +64,7 @@ testthat::test_that("join does not duplicate code but adds only extra code", {
6464

6565
testthat::expect_identical(
6666
unlist(q@code),
67-
c("iris1 <- iris", "mtcars1 <- mtcars", "iris2 <- iris", "mtcars2 <- mtcars")
67+
c("iris1 <- iris\n", "mtcars1 <- mtcars", "iris2 <- iris", "mtcars2 <- mtcars")
6868
)
6969

7070
testthat::expect_equal(

tests/testthat/test-qenv_within.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ testthat::test_that("styling of input code does not impact evaluation results",
4848
all_code <- get_code(q)
4949
testthat::expect_identical(
5050
all_code,
51-
rep(c("1 + 1", "2 + 2"), 4L)
51+
rep(c("1 + 1\n", "2 + 2"), 4L)
5252
)
5353
})
5454

0 commit comments

Comments
 (0)