File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ testthat::test_that("colour palette is completed if it misses colours for gradin
44 sample_data <- data.frame (GRADING = LETTERS [1 : n ])
55 grading_col_pal <- structure(sample(colours(), n - 10 ), names = LETTERS [1 : (n - 10 )])
66 grading_col_pal_filled <- fill_palette(sample_data [[" GRADING" ]], grading_col_pal )
7- testthat :: expect_length(grading_col_pal_filled , n )
7+ testthat :: expect_length(grading_col_pal_filled , n + length( CONST $ default_palette ) )
88})
99
1010testthat :: test_that(" colour palette is filled even if pre-defined colors used up" , {
@@ -21,5 +21,5 @@ testthat::test_that("colour palette is filled even if pre-defined colors used up
2121 names = LETTERS [1 : 26 ]
2222 )
2323 grading_col_pal_filled <- fill_palette(sample_data [[" GRADING" ]], grading_col_pal )
24- testthat :: expect_length(grading_col_pal_filled , 29 )
24+ testthat :: expect_length(grading_col_pal_filled , 29 + length( CONST $ default_palette ) )
2525})
You can’t perform that action at this time.
0 commit comments