We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fda191 commit 52326a4Copy full SHA for 52326a4
inst/tests/test-layer.r
@@ -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