Skip to content

Commit 1f7a4eb

Browse files
pkqhadley
authored andcommitted
Fix typos in testthat tests (#2632)
1 parent a7b3135 commit 1f7a4eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/testthat/test-aes.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ test_that("quosures are squashed when creating default label for a mapping", {
9393
expect_identical(p$labels$x, "identity(cyl)")
9494
})
9595

96-
test_that("labelling doesn't cause error if aesthetic is nul", {
96+
test_that("labelling doesn't cause error if aesthetic is NULL", {
9797
p <- ggplot(mtcars) + aes(x = NULL)
9898
expect_null(p$labels$x)
9999
})

tests/testthat/test-scale-discrete.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test_that("NAs translated/preserved for non-position scales", {
4848

4949
# Ranges ------------------------------------------------------------------
5050

51-
test_that("discrete ranges also encompas continuous values", {
51+
test_that("discrete ranges also encompass continuous values", {
5252
df <- data.frame(x1 = c("a", "b", "c"), x2 = c(0, 2, 4), y = 1:3)
5353

5454
base <- ggplot(df, aes(y = y)) + scale_x_discrete()

tests/testthat/test-scales.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
context("Scales")
22

3-
test_that("buidling a plot does not affect its scales", {
3+
test_that("building a plot does not affect its scales", {
44
dat <- data.frame(x = rnorm(20), y = rnorm(20))
55

66
p <- ggplot(dat, aes(x, y)) + geom_point()

0 commit comments

Comments
 (0)