Skip to content

Commit 52326a4

Browse files
author
Kirill Müller
committed
add test
1 parent 3fda191 commit 52326a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

inst/tests/test-layer.r

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
context("Layer")
2+
3+
test_that("Correctly decide if a variable is a calculated aesthetic", {
4+
expect_true(ggplot2:::is_calculated_aes(aes(x=..density..)))
5+
expect_false(ggplot2:::is_calculated_aes(aes(x=a..x..b)))
6+
expect_equal(as.character(ggplot2:::strip_dots(aes(x=..density..))), "density")
7+
})

0 commit comments

Comments
 (0)