Skip to content

Commit 160bcf8

Browse files
committed
Edit test
1 parent 08e6a72 commit 160bcf8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/testthat/test-palette_dataedu.R

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ library(dataedu)
33
context("test-palette_dataedu.R")
44

55
test_that("dataedu_pal() main works", {
6-
p <- dataedu_pal()
6+
p <- dataedu:::dataedu_pal()
77
expect_is(p, "function")
8-
for (i in 1:5) {
8+
for (i in 1:6) {
99
expect_hexcolor(p(i))
1010
}
1111
})
1212

1313
test_that("dataedu_pal() reverse works", {
14-
p <- dataedu_pal(reverse = TRUE)
14+
p <- dataedu:::dataedu_pal(reverse = TRUE)
1515
expect_is(p, "function")
16-
for (i in 1:5) {
16+
for (i in 1:6) {
1717
expect_hexcolor(p(i))
1818
}
1919
})
2020

2121
test_that("scale_color_dataedu() works", {
22-
expect_is(scale_color_dataedu(), "ScaleDiscrete")
22+
expect_is(dataedu:::scale_color_dataedu(), "ScaleDiscrete")
2323
})
2424

2525
test_that("scale_fill_dataedu() works", {
26-
expect_is(scale_fill_dataedu(), "ScaleDiscrete")
26+
expect_is(dataedu:::scale_fill_dataedu(), "ScaleDiscrete")
2727
})

0 commit comments

Comments
 (0)