@@ -19,33 +19,34 @@ testthat::test_that("bivariate_ggplot_call with numerics", {
1919})
2020
2121testthat :: test_that(" bivariate_ggplot_call with factor, char, logical" , {
22- testthat :: expect_match(
22+ error_message <- " Categorical variables 'x' and 'y' are currently not supported."
23+ testthat :: expect_error(
2324 bivariate_ggplot_call(" factor" , " factor" ) %> % deparse(width.cutoff = 300 ),
24- " geom_mosaic "
25+ error_message
2526 )
26- testthat :: expect_match (
27+ testthat :: expect_error (
2728 bivariate_ggplot_call(" logical" , " factor" ) %> % deparse(width.cutoff = 300 ),
28- " geom_mosaic "
29+ error_message
2930 )
30- testthat :: expect_match (
31+ testthat :: expect_error (
3132 bivariate_ggplot_call(" character" , " factor" ) %> % deparse(width.cutoff = 300 ),
32- " geom_mosaic "
33+ error_message
3334 )
34- testthat :: expect_match (
35+ testthat :: expect_error (
3536 bivariate_ggplot_call(" logical" , " character" ) %> % deparse(width.cutoff = 300 ),
36- " geom_mosaic "
37+ error_message
3738 )
38- testthat :: expect_match (
39+ testthat :: expect_error (
3940 bivariate_ggplot_call(" character" , " logical" ) %> % deparse(width.cutoff = 300 ),
40- " geom_mosaic "
41+ error_message
4142 )
42- testthat :: expect_match (
43+ testthat :: expect_error (
4344 bivariate_ggplot_call(" logical" , " logical" ) %> % deparse(width.cutoff = 300 ),
44- " geom_mosaic "
45+ error_message
4546 )
46- testthat :: expect_match (
47+ testthat :: expect_error (
4748 bivariate_ggplot_call(" character" , " character" ) %> % deparse(width.cutoff = 300 ),
48- " geom \\ _mosaic "
49+ error_message
4950 )
5051})
5152
0 commit comments