Skip to content

Commit c5548db

Browse files
committed
Fix typos
1 parent 3aed0c4 commit c5548db

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/testthat/test-ggplot-hline.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ test_that("vector yintercept results in multiple horizontal lines", {
2929
L <- gg2list(gg)
3030

3131
expect_equal(length(L), 5)
32-
expect_equal(L[[2]]y[1], 1)
33-
expect_equal(L[[3]]y[1], 2)
34-
expect_equal(L[[4]]y[1], 3)
32+
expect_equal(L[[2]]$y[1], 1)
33+
expect_equal(L[[3]]$y[1], 2)
34+
expect_equal(L[[4]]$y[1], 3)
3535
expect_true(L[[4]]$x[1] <= 0)
3636
expect_true(L[[4]]$x[2] >= 3.325)
3737
expect_identical(L[[3]]$mode, "lines")

tests/testthat/test-ggplot-vline.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ test_that("vector xintercept results in multiple vertical lines", {
2929
L <- gg2list(gg)
3030

3131
expect_equal(length(L), 4)
32-
expect_equal(L[[2]]x[1], 1)
33-
expect_equal(L[[3]]x[1], 2)
32+
expect_equal(L[[2]]$x[1], 1)
33+
expect_equal(L[[3]]$x[1], 2)
3434
expect_true(L[[3]]$y[1] <= 0)
3535
expect_true(L[[3]]$y[2] >= 3.325)
3636
expect_identical(L[[3]]$mode, "lines")

0 commit comments

Comments
 (0)