Skip to content

Commit e91faa6

Browse files
committed
added testthat for title/subtitle components
1 parent 1ce6014 commit e91faa6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/testthat/test-labels.r

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ test_that("Setting guide labels", {
88
expect_identical(ylab("my label")$y, "my label")
99
expect_identical(labs(y = "my label")$y, "my label")
1010

11+
# Plot titles
12+
expect_identical(labs(title = "my title")$title, "my title")
13+
expect_identical(labs(title = "my title",
14+
subtitle = "my subtitle")$subtitle, "my subtitle")
15+
1116
# Colour
1217
expect_identical(labs(colour = "my label")$colour, "my label")
1318
# American spelling

0 commit comments

Comments
 (0)